Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxyPreviewer Internal Error for PDF as Image
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
FoxyPreviewer Internal Error for PDF as Image
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01540200
Message ID:
01540200
Vues:
128
We are using FoxyPreviewer287b. We are using the following statement to generate a PDF (as image) file from our report:

REPORT FORM RPARTDET2 OBJECT TYPE 11 TO FILE (Xfile)

When generating the report for a fairly large file (in this case just under 1400 records, 2 records per page, so around 700 pages), we receive the following error message:

"Internal error loading the page image file from the report."

In looking at the source code, this code sequence appears just before the error is issued

toListener.OutputPage(lnPageNo, lcFile, lnDeviceType)
* lnHandle = HPDF_LoadJpegImageFromFile(This.pdfHandle, lcFile)
lnHandle = HPDF_LoadPngImageFromFile(This.pdfHandle, lcFile)

By looking at the generated image files, we can see that the call to OutputPage() does not create the file in question and as a result, the call to HPDF_LoadPngImageFromFile() fails with a return value of 0.

The problem seems to be caused by the process running out of memory. If we watch the memory usage under Task Manager, wee see it escalate sharply until reaching the error.

Can you suggest a possible solution to this problem?

Thanks you for any help you can offer.
Scott King
The Support Source Corporation
Répondre
Fil
Voir

Click here to load this message in the networking platform