WPCubed Product Support

Issues with PrintParameter

Hi,

How can I replace the following code for a WPTools 5 upgrade from 4:

GetRichText.PrintParameter.DoNotUpdatePageSize := True;
GetRichText.PrintParameter.UpdatePrinterProperties(
fPageWidth, fPageHeight, GetDefMode(),
GetRichText.PrintParameter.AllPagePaperSource,
GetRichText.Header.Landscape);

I noticed that the DoNotUpdatePageSize property does not exist in WPTools 5, same thing for the UpdatePrinterProperties method. What should the replacement look like?

Thanks,

#1 ♥ 0
9.1k Views 2 users read 1 min
support

Use WPRichText.ReadPrinterProperties to get the page size from the current printer.

Use wpDoNotChangePrinterDefaultsin PrintParameter.PrintOptions to disable the update of the printer properties by WPTools.

Please note that the new WPTools 5' WYSIWYG concept does not require a reformat of the text when you switch printers!

PS.: Please do not post questions here, this is only for questions with answers. I sometimes move topics from the other lists here which appear to be of general interest.

#2 ♥ 0
This category is archived. No new posts are possible.