Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetPrinter( ) question
Message
De
07/05/2001 09:49:50
 
 
À
07/05/2001 09:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00504161
Message ID:
00504168
Vues:
18
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform