Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Saving printer settings

edited March 2002 in General
I upgraded to 6.03 from 5.0. Since then, my printer settings always show
the 'Screen' printer is the selected printer after the printer dialog box
closes. It doesn't reflect the printer that the user has chosen. I do have
the option selected to save the printersetup. What has changed? What do I
have to do different in 6.0?

Bob

Comments

  • edited March 2002
    When the report's SavePrinterSetup property is true the printer setup for
    the current report instance is maintained in the report's print dialog and
    not in the report's printer setup object. To get the printer name selected
    by the user reference the printer setup object through the form's print
    dialog in the report's OnPrintDialogClose event, ie.

    TppPrinter(ppReport1.PrintDialog.Printer).PrinterSetup.PrinterName

    Make sure to add ppPrintr to the uses clause.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited March 2002
    Thanks. I will give it a shot. Was there a change though? I remember my
    code worked at one time.

    Bob

This discussion has been closed.