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

Change Selected Printer in PrintDialog

edited September 2006 in General


I'm trying to change in delphi code the selected printer


I do this


ppReport1.PrinterSetup.PrinterName := 'MyPrinter';


If sending directly to the printer it works fine, but if show the preview
and then click on the print button, the PrintDialog still show the default
printer

I want to change the selected printer in the PrintDialog before PrintDialogs
shows


I try this without succes

ppReport1.Printer.PrinterName := RecFNT.Imp


thanks
James G

Comments

  • edited September 2006


    Sorry I fix my problem

    I'm using external templates (rtm) and I was setting the printer before
    loading the template .. my mistake

    thanks :P

    "James Garza" escribi? en el mensaje
This discussion has been closed.