Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error accessing printer spooler (Error 1957)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062254
Message ID:
00062291
Views:
52
>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
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform