Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error accessing printer spooler (Error 1957)
Message
From
26/11/1997 10:26:27
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062254
Message ID:
00062399
Views:
97
>>>>
>>>>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
>>>>
>>>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?
>>>
>>But you can have a button, which calls SYS(1037), user selects the proper printer, and then by pressing Print button
>>
>>REPORT FORM ... TO PRINTER NOCONSOLE or
>>LABEL FORM ... TO PRINTER NOCONSOLE
>>
>>and you don't need that array.
>>That's what I have in my Print Options form.
>>
>>Nick
>
>Ok, I thank I got ya, I'll give this a whirl and see what I get
>
>Thanks again Nick
>Jon Wilshusen
>future VFP Expert :)

I got it I change my code from:
SET PRINTER TO NAME m.cSelPrinter1
to
SET PRINTER TO NAME (m.cSelPrinter1)
and that seemed to corrected the problem

Jon
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Previous
Reply
Map
View

Click here to load this message in the networking platform