Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error accessing printer spooler strikes again
Message
De
16/11/1998 16:47:34
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
16/11/1998 16:14:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00157988
Message ID:
00158013
Vues:
22
Hi Trisha. Have you tried sys(1037)?

>I am trying to automate certain programs to print to a specific printer. Currently they automatically print to the user's windows default printer. I am able to obtain the default printer name in a variable, change to the printer I want, print the job to that printer, but when I try to switch back to the user's windows default printer I receive the error message - "Error accessing printer spooler" . Here is my code:
>
> lc_default = SET("printer", 2)
> SET PRINTER TO NAME \\ETBDC\EOTLBL
> PRINTJOB
> .
> .
> .
> ENDPRINTJOB
> SET PRINTER TO NAME lc_default
>
>Any suggestions? TIA :)
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform