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

Save Printer Setup Settings

edited January 2006 in General
Hi, do anyone have an idea on how can i do to save the last printer settings
(PaperName) used by user, so it uses that same printer setup next time user
prints the report.

We tryied to set the PrinterSetup.SavePrinterSetup to true and save that
settings on a INI File and then restore it next time the user loads the
form, but the problem is the option PrinterSetup.SavePrinterSetup doesn't
work if the user prints the report to a file, instead of a printer.

Thanks for any help.

Fabio,
Server Informatica

Comments

  • edited January 2006
    Hello,

    You can determine which device your user is printing to by checking the
    Report.PrintDialog.DeviceType. If they are printing to a file, you will
    need to manually save the file options to your .ini file and re-load them as
    needed.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2006
    Hi Nico,
    Thank you for the reply, but the problem is that when the user changes the
    printer name in the printer settings after the ppreport.print method, and
    print to file, when it comes back it no longer has the property set to the
    printer name that he chose in the printer setup, as if the
    PrinterSetup.SavePrinterSetup was not working if the user prints to the
    file, but works ok when printing to normal printer.


  • edited January 2006
    Hi,

    Unfortunately this scenario is not supported by the SavePrinterSetup
    routine. If the user changes the printer name, then prints to file anyway,
    the printer setup from the print dialog is never assigned to the printer
    setup of the report and therefore never changed. If you would like to save
    this information even when the report is printed to a file, you will need to
    do so manually using the PrintDialog property of the Report object.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.