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

hiding "printing dialog" when printing to PDF

edited August 2006 in Devices
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

Comments

This discussion has been closed.