In my program I use the following to set the default printer:
Code: Select all
Procedure Setdefaultprinter1(DeviceLine.s)
WriteProfileString_("windows", "Device", DeviceLine)
SendMessage_(#HWND_BROADCAST, #WM_WININICHANGE, 0, "windows")
EndProcedure
SendMessage_(#HWND_BROADCAST, #WM_WININICHANGE, 0, "windows")
I should kill the program to stop it.
has anyone experienced that? is there another way to set the default printer under windows10?
is there an external program (to use with runprogram) that can do the same job?
Thank you