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

Reportbuilder 15 - PDF file is not opened after PrintToDevices

edited June 2013 in General
Hi,

it seems that the setting

PDFSettings.OpenPDFFile

in a TppPDFDevice object is ignored. The PDF File will not open after printing
to the device.


Looking into the source of RB15 and RB 14.08 i noticed that you removed the
corresponding lines (around line 380) in unit ppPDFDevice, Method TppPDFDevice.EndJob:


if FPDFSettings.OpenPDFFile and FileExists(FileName) then
ShellExec(FileName, '', ExtractFilePath(FileName), SW_SHOWNORMAL);


Is there any reason for this change?


Thanks & Regards
Stefan Kirchhoff

Comments

  • edited June 2013
    Hi,

    code from your Wiki

    http://www.digital-metaphors.com:8080/index.php?title=Output/PDF/How_To...Merge_Multiple_Reports_into_one_PDF&highlight=pdf

    shows the bug. It bug only shows up when you use a self created PDFDevice
    to merge multiple Reports to one PDF.

    Thanks & Regards
    Stefan Kirchhoff
  • edited June 2013
    Hi Stefan,

    Thanks for pointing this out. The TppPDFSettings.OpenPDFFile property
    has been deprecated for RB 15 and has been replaced by the
    TppFileDevice.OpenFile property.

    The OpenPDFFile property still works for the Report.PDFSettings however
    it is not working for a manually created PDFDevice. I will fix this for
    backward compatibility in the next release however the preferred method
    to open a file is now to use the OpenFile property.

    RB 14 or earlier: lPDFDevice.PDFSettings.OpenPDFFile := True;

    RB 15 or later: lPDFDevice.OpenFile := True;

    Best Regards,

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