It looks like you're new here. Sign in or register to get started.
Name DataType Subtype Length WshShell Automation 'Windows Script Host Object Model'.WshShell if isclear(WshShell) then create(WshShell); RegKey := 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device'; Variantvariable := WshShell.RegRead(RegKey); clear(WshShell); message(format(Variantvariable));
rundll32 printui.dll,PrintUIEntry /y /n "Your Printer Name"
Comments
"HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device".
So, with this little code, you can get back the default printer of the current user.
You can change the users default printer with following:
Regards
Navision -> CU 1
Windows -> WSH
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!