Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output a report in PDF format
Message
From
13/04/2010 03:06:38
 
 
To
30/03/2010 07:27:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01455338
Message ID:
01459866
Views:
99
Hi Srdjan

I'm getting an error when I try to open the PDF file: "There was an error opening the document. The file is damaged and could not be repaired!" After investigating I found that this happens when the user previews the report ("report form tmprpt to printer prompt preview") and selects to print the report. I call your class after the preview report command and then it creates the PDF, but you can see the size is to small (1KB instead of 138KB) and if you try to open it, the above mentioned error is displayed.

Is there another command that I must include? If I preview the report and just close the preview, without printing, the file is created without errors and it can open. So, I don't think it is the preview, but rather the code that takes place when the user selects a printer. After the printer is selected the print preview screen is automatically closed.

Thanks again.

Irene
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform