Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output a report in PDF format
Message
De
13/04/2010 03:06:38
 
 
À
30/03/2010 07:27:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01455338
Message ID:
01459866
Vues:
107
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform