Hi Colin,
I may misunderstand what you want but you can change the default printer with the following:
oWSH = CREATEOBJECT("WSCRIPT.Network")
? SET("PRINTER",2)
oWSH.SetDefaultPrinter(GETPRINTER())
? SET("PRINTER",2)
Guy
>I have an Eltron Orion label printer attached to pcA. It is shared on a TCP/IP network.
>
>pcB attempts to print on this printer (pcB default printer is a Laser) using the following code:-
>
>SET PRINTER TO NAME GETPRINTER() - operator selects Eltron on pcA
>SET PRINTER ON PROMPT - operator changes orientation to portrait
>
>BUT - unless the Eltron is set up as pcB's default printer I get 'error accessing printer spooler'
>
>If I could just change pcB'c default printer!!!
>
>Colin Northway
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only