Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetPrinter( ) question
Message
From
07/05/2001 09:49:50
 
 
To
07/05/2001 09:41:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00504161
Message ID:
00504168
Views:
17
>>>I use lcPrinter = GetPrinter( ) in an app to allow the user to pick a printer. All is good as long as they pick a UNC print device like \\MONTANA\SV_HPCOLORCADPRO. However this also allows the user to pick “HP LaserJet 4 Plus” which produces “Error accessing print spooler” at runtime.
>>>
>>>How is the best way to deal with this?
>>
>>Jim,
>>
>>Are you doing
set printer to Name (lcPrinter)
>
>Yep, works in development but errors at runtime.

Oh.

Is the printer (and driver) ok? It is probably worth looking into the HP drivers they seem to cause lots of problems

Few things for you to check (although I don't know if any of them specifically relate to your problem)

Remove Tag,Tag2 & Expr from the 1st row of the .FRX (needs to be done each time after modifying report)
Change Printer drivers (either use HP drivers provided on Win9X cd or get the latest Enhanced PCL drivers from HP)

Failing that just throw away the HP printer <g>

Sorry I can't be more help!
Will Jones
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform