C
Claude
I am having a problem setting the default printer running in Terminal
Server without Administrative privileges.
Using Word Automation, when I set activepriner to a printer (which
does exist, no run=time error), it doesn't change.
When I use the windows API, when I use WriteProfileString("windows",
"Device", strDeviceName), it does reset the registry but I have a
feeling that the following is not working:
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, ByVal "windows")
because the default printer in the Control Panel's Printers app (or
any other application) never changes. Is this a security issue? Is
there any way around it? Even putting up a printers dialog box and
using SendInput to send keys to change the printer.
Server without Administrative privileges.
Using Word Automation, when I set activepriner to a printer (which
does exist, no run=time error), it doesn't change.
When I use the windows API, when I use WriteProfileString("windows",
"Device", strDeviceName), it does reset the registry but I have a
feeling that the following is not working:
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0, ByVal "windows")
because the default printer in the Control Panel's Printers app (or
any other application) never changes. Is this a security issue? Is
there any way around it? Even putting up a printers dialog box and
using SendInput to send keys to change the printer.