hiding "printing dialog" when printing to PDF
Hi,
I'm using report builder 10.04 and would like to print to a PDF without
showing any dialogs. I have written the following code:
Report.AllowPrintToFile := True;
Report.ShowPrintDialog := False;
Report.ModalCancelDialog := False;
Report.DeviceType := dtPDF;
Report.TextFileName := Filename;
Report.Print;
With this code I still get a "printing dialog" popping up. Any ideas as to
how I get rid of it?
Thanks
Jacques
I'm using report builder 10.04 and would like to print to a PDF without
showing any dialogs. I have written the following code:
Report.AllowPrintToFile := True;
Report.ShowPrintDialog := False;
Report.ModalCancelDialog := False;
Report.DeviceType := dtPDF;
Report.TextFileName := Filename;
Report.Print;
With this code I still get a "printing dialog" popping up. Any ideas as to
how I get rid of it?
Thanks
Jacques
This discussion has been closed.
Comments
You need to set the Report.ShowCancelDialog property to False as well. This
will remove the dialog you see while the report is generating.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com