OIPI Default Printer Change (OpenInsight 32-Bit)
At 02 JUN 2011 12:22:29PM Matthew Watson wrote:
I have a new problem with printing once again.
I can no longer change the default printer (Microsoft level).
I am currently on OI 9.2.1
Work Station is Windows 7
if i am printing directly to the printer it will go to the new printer using 'INIT' param6. but it will not microsoft set the printer to the new default printer.
So when I shellexecute a recently created PDF to the default printer it is sending it to the original printer not the new default printer.
What am I doing wrong?
At 02 JUN 2011 03:17PM Bob Carten wrote:
Can you use OLE to set the default printer before ShellExcute?
objNetwork=OleCreateInstance("Wscript.Network")
x=OleCallMethod(objNetwork, "SetDefaultPrinter", "PrinterName")
At 02 JUN 2011 03:19PM Matthew Watson wrote:
Thank you.
Will try that.
At 08 JUL 2011 03:08PM John Taylor wrote:
Bob once again you prove that you are the OLE supremo, this worked like a treat. May I suggest to save others the trouble remember to set the default back again after the redirected print is completed since the "default" change remains in place. Also I found that the original printer had to be reset via Set_Print("INIT" afterwards as well for some reason.