Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error accessing printer spooler (Error 1957)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00062254
Message ID:
00062297
Vues:
90
>>>I am trying to send two differant reports to 2 differant printers,
>>>
>>>I use the APRINTERS(gaPrinters) to store the available printers on the system, I than use this array to populate Two combo box's on a form, after you clicks on the OK button of this form. The following code is fired
>>>
>>>m.nReturnRec = RECNO()
>>>IF THISFORM.CHECK1.VALUE = 1
>>> IF !EMPTY(THISFORM.COMBO1.DISPLAYVALUE)
>>>*!* SET PRINTER ON
>>> m.cSelPrinter1 = ALLTRIM(THISFORM.COMBO1.DISPLAYVALUE)
>>> SET PRINTER TO NAME m.cSelPrinter1
>>> FOR I = 1 TO THISFORM.SPINNER1.VALUE
>>> IF I <= THISFORM.SPINNER1.VALUE
>>> LABEL FORM jobtags FOR JOBNO =;
>>> JOBS.PAGEFRAME1.PAGE1.TXTJOBNO.VALUE;
>>> TO PRINTER NOCONSOLE
>>> ENDIF
>>> ENDFOR
>>>*!* SET PRINTER OFF
>>> ENDIF
>>>ENDIF
>>>snip...
>>>
>>>On the line "SET PRINTER TO NAME m.cSelPrinter1" I get the error "Error accessing printer spooler" Does anyone Know how to prevent this from happening? I don't know why it started doing this????
>>>
>>>Thanx
>>>Jon Wilshusen
>
>Jon, did you try to use the button using SYS(1037) in your print dialog?
>Probably it can help you to get rid if this whole thing.
>
>Nick
>
>P.S., sorry, pressed wrong button in first reply... :)
Nick I changed that line to "SET PRINTER TO NAME SYS(1037)" and that prevented the error, but I thats not what I want. I want the user to select the proper printer for each of the 2 reports, which are located in the array. whats up with "SET PRINTER TO NAME m.anyprinter" syntax?

thanks again
Jon
NON-VFP Expert
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform