How can you fix error 1958 when using SET PRINTER TO on Vista 64bit in VFP 8

Our VFP 8 application returns error 1958 which is "Error loading printer driver" when executing the following line of code

SET PRINTER TO HP1200

      

on Vista Business 64-bit laptop. HP1200 is the HP 1200 Business Inkjet Printing Model.

The customer uninstalled and reinstalled the printer using the latest 64-bit driver from HP. We also tried adding a new Generic / Text Only printer to the FILE: port and using that instead and we get the same error. Therefore, it does not apply to the HP printer driver.

We also tried to delete the line SET PRINTER TO

and just run the a command REPORT FORM

to get it to the default printer, but we don't get the output.

The client has a desktop computer, 64 Vista Business, and the same printer and driver, and we don't see the same error. They run Avast antivirus on both machines.

0


source to share


1 answer


We have at least one client using Vista with a FoxPro application, but we are using FoxPro 9 and have had no printing problems.

From everything I've read, if you're going to use Vista and FoxPro together, FoxPro 9 is the way to go.



http://www.promatrix.com/mall/vfp-vista-compatibility.asp

We switched our application from Foxpro 8 to Foxpro 9, especially Vista compatibility ... and although I wasn't directly involved, I don't think the switch was difficult to do.

0


source







All Articles