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

PDF-Export: reader error 14?

edited October 2014 in Devices
Hi,

we are creating lots of PDF files from reports. From time to time there
are documents that cannot be opend by the Acrobat Reader. The reader
shows the error message "There was a preoblem loading this file (14)"
when i try to view such a file.

After the reader has show this message i see a blank page and the zoom
factor is set to 6400% (is that the maximum?).

Currently i do not know where to search for the cause of this problem.
We create hundreds of PDF files without any problem but then there are
suddenly 10-20 files that do not display in the reader. After that the
next files (again hundreds of them) are perfectly OK. All files are
created using the same parameters. There is no difference in the
settings between the files that are OK and the files that fail to display.

Do you have any hint how to fix that problem?

Thanks in advance,
Ralf

Comments

  • edited October 2014
    Hi Ralf,

    Which version of ReportBuilder and Delphi are you using?

    This is not a known issue. Is there a difference between the reports
    that export correctly and the ones that don't? Are the same reports
    exporting with the error all the time?

    If you would like, you can send me a copy of one of the affected PDF
    files and I can see if it gives any clues to what is happening however
    what we really need is to isolate the issue with a simple reproducible
    case so we can track down the issue.

    Send all files to support@digital-metaphors.com.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2014
    Am 28.10.2014 15:33, schrieb Nico Cizik (Digital Metaphors):

    Hi Nico,


    We are currently using ReportBuilder V15.04 on Delphi XE5.


    No. There is no difference. It is *one* report that is used. This report
    is generated over and over again (of course with different data) and
    some of the generated PDF files are corrupted. The settings for the PDF
    generation are always the same, only the displayed data changes (other
    names, other addresses and so on).


    OK. I will send you a sample PDF later this day.

    Thanks in advance,
    Ralf
  • edited October 2014
    Hi Ralf,

    Thanks for the example. Below is a copy of the response I sent.

    --

    The issue is not PDF related per se but has to do with somewhere in your
    code where you are changing the global Delphi FormatSettings property.
    When using ReportBuilder, each time you alter the FormatSettings in
    Delphi, you also need to update the ppFormatSettings property for
    ReportBuilder. Doing a search on your code for anywhere this might be
    occurring will help you make the changes quickly.

    For instance...

    uses
    ppUtils;


    FormatSettings.DecimalSeparator := ',';
    ppFormatSettings := FormatSettings; //Add this line



    Best Regards,

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