Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
Devices
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
RE: Pdf output
rbuser
May 2011
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
nicocizik
May 2011
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
rbuser
May 2011
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
rbuser
May 2011
edited May 2011
Done. Thanks for help.
.Peter Tan
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
.Peter Tan