Printer Setup
Hi,
I have two button on my app that gives print and print setup functions. If
user selects Print Setup and makes the printer selection with following code
it does not save the settings and prints on the default printer when i print
using Print button of my app.
Delphi 6
CODE:
with rbrptname
devicetype := dtprinter;
showprintdialog := true;
print;
end
Is there anything that saves the Printer setup until the application is up ?
Reply awaited.
Dipak.
I have two button on my app that gives print and print setup functions. If
user selects Print Setup and makes the printer selection with following code
it does not save the settings and prints on the default printer when i print
using Print button of my app.
Delphi 6
CODE:
with rbrptname
devicetype := dtprinter;
showprintdialog := true;
print;
end
Is there anything that saves the Printer setup until the application is up ?
Reply awaited.
Dipak.
This discussion has been closed.
Comments
You need to set the Report.SavePrinterSetup property to True.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for your quickest response. We really appreciate and cheer it.
How to open the Print Setup Dialog only - i dont want to print the report
when i hit ok on the print setup.
Thanks.
Take a look at Demo 121 located in the \RBuilder\Demos\1. Reports\...
directory. This shows how you can alter the printer settings using a dialog
similar to the page setup dialog.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com