Printing to PDF
How do I Print a report to PDF?
I Set the following:
AllowPrintToArchive := True;
DeviceType := PDF;
PDFSettings.OpenPDFFile := True;
Yet when I run the report I still get it in the Preview Screen. Am I
Missing Something? I can't find anything in the developers guide and the
help Doesn't list dtPDF as an option for the DeviceType Property.
Nigel
I Set the following:
AllowPrintToArchive := True;
DeviceType := PDF;
PDFSettings.OpenPDFFile := True;
Yet when I run the report I still get it in the Preview Screen. Am I
Missing Something? I can't find anything in the developers guide and the
help Doesn't list dtPDF as an option for the DeviceType Property.
Nigel
This discussion has been closed.
Comments
I still get the preview form up and even though I Set ShowPrintDialog :=
False I still get the print dialog when I try to print.
Now PDF is an option in the printers but this is the Adobe PDF Print Driver
(since I have Acrobat, not just Acrobat Reader). The reasoon I know this is
because when I looked at the document properties the Title and Author
settings were not the ones I set up in the report.
Check out the help on TppPDFDevice for a detailed description of what you
need to do to print to PDF. Be sure you have ppPDFDevice included in your
uses clause. Also note that setting OpenPDFFile to True will try to open
the generated PDF file using your default windows PDF viewer.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com