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,

    • Offizieller Beitrag

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

    Use wpDoNotChangePrinterDefaults in 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.