>>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 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