OpenPDFFile
Hi
This is my code, i expect the PDF NOT to be openend after creatiom, but
still it does (RB 12.04 and D2007)
repToPrint.AllowPrintToFile := True;
repToPrint.DeviceType := dtPDF;
repToPrint.PDFSettings.OpenPDFFile := False;
repToPrint.TextFileName := OpFile;
repToPrint.ShowPrintDialog := False;
repToPrint.Print;
Eric
This is my code, i expect the PDF NOT to be openend after creatiom, but
still it does (RB 12.04 and D2007)
repToPrint.AllowPrintToFile := True;
repToPrint.DeviceType := dtPDF;
repToPrint.PDFSettings.OpenPDFFile := False;
repToPrint.TextFileName := OpFile;
repToPrint.ShowPrintDialog := False;
repToPrint.Print;
Eric
This discussion has been closed.
Comments
Are you by chance loading templates? If so you need to load the
template before setting these properties. Otherwise the settings made
when the template was saved will override them. This can be done either
after you manually load the template or in the OnLoadEnd event.
http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com