Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP!!! Cannot Print in NT!
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00326280
Message ID:
00326860
Views:
26
Thanks for the info. I have submitted this to an MS VFP tester. I can't believe that I'm the only one experiencing this! I literally cannot get it to work reliably on ANY NT machine with ANY printer driver. Here is how I reproduce the issue:

I have a printer named laserjet using the MS HP laserjet 4 driver (from the NT disk). I have a dummy report with 1 record and some labels. I'm using NT server4 SP4. I type the following into the command line:

SET PRINT TO NAME 'laserjet'
REPORT FORM testrep TO PRINT PROMPT NOCONSOLE

I get the print dialog and click OK, and "error loading printer driver". I can't get it to print more than 4 times in a row without erroring! I even loaded a fresh copy of VFP6 and SP3 on the machine. You guys don't have problems doing this to NT machines, right? Thanks for your time, I have a lot of angry customers right now and am getting desperate to figure this out.

Thanks,
Marcus.



>If you are using SET PRINTER TO LPT1:, you shouldn't be having a problem. If you using SET PRINTER TO and using *ANY*
>long name, the problem will eventually (and unpredictably) occur (also note that GETPRINTER() returns long names). I've also noticed that this problem did not appear to be in pre-SP3 VFP.
>
>>>If your NT Printer Names are long file names, there is a bug in VFP SP3 that generates 'Error Loading Printer Driver' messages. Repeated
>>>SET PRINTER commands will eventually work. The only workaround at this time is to wrap the SET PRINTER commands in a class library,
>>>trap the error, and loop until successful (or max attempts have been reached).
>>>
>>>The only other solution is to shorten all of the network printer names to <=8 characters.
>>>
>>>HTH,
>>>Ed
>>>
>>>>Since service pack 3 of VFP6, my clients and I cannot print from NT. I get error 1958, error loading printer driver. We were all using HP drivers, and the problem dissappears for most after changing to MS drivers. However, it didn't help a few people. Can anyone successfully print from NT with an HP driver using VFP6 SP3? Anyone know why this would start occuring after installing SP3 runtimes? Thanks for any input, it is greatly appreciated.
>>>>
>>>>Marcus.
>>
>>Thank you very much. Do you mean the actual name of the printer, or do you mean long file names in the path of the printer? I'm getting the error on machines printing to lpt1, but the printer names are definitely more than 8 characters: "HP Laserjet 6L" Is that what you're speaking of?
>>
>>Thanks,
>>Marcus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform