General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only