>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--