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

Printing to PDF

edited January 2005 in General
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

Comments

  • edited January 2005
    I Found the Example under the TppPDFDevice and followed it exactly. However
    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.


  • edited January 2005
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.