Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Microsoft Office Document Image Writer Problem
Message
 
 
To
12/10/2005 02:46:30
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01058213
Message ID:
01059381
Views:
15
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform