Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft Office Document Image Writer Problem
Message
 
 
À
12/10/2005 02:46:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01058213
Message ID:
01059381
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I have "Microsoft Office Document Image Writer" (office 2003) installed on my machine.
>When the reports are displayed and if i click on the print button and select the Image writer. A dialog box appears to save the image. If i click on the Save button there is no problem and the image is saved in the selected path. But if i click Cancel then i get an Error "Error loading printer driver", Error No.: 1958.
>
>What could be the reason for this error as it works fine if i have to Click on the Save button.

I get the error in VFP8SP1 but not in VFP9 so it looks like a bug to me. You can use TRY...ENDTRY to handle the error to workaround the bug.
TRY
	REPORT FORM MyReport NOCONSOLE TO PRINTER PROMPT PREVIEW
CATCH TO oExp WHEN oExp.ErrorNo = 1958
	*...
ENDTRY	
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform