RE: Pdf output

edited May 2011 in Devices
Hi,

I allow users to output to PDF file. Does anyone have the code that will
automatically fire up acrobat reader with the saved pdf file?

Thanks,
Peter Tan

Comments

  • edited May 2011
    Hi Peter,

    You can set the Report.PDFSettings.OpenPDFFile property to automatically
    open a PDF file once it has been created. See the source for how this
    is done.


    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2011
    Hi,
    after you have printed report you can open pdf file with shellexecute
    command:

    shellexecute(application.handle, pchar('open'), pchar(filename),
    pchar(user) or '', nil, SW_SHOWNORMAL);

    Paolo Angeretti
  • edited May 2011
    Done. Thanks for help.

    .Peter Tan
This discussion has been closed.