Sign in to follow this  
Followers 0
EKY32

~ View a Printer properties and settings? (SOLVED)

2 posts in this topic

#1 ·  Posted (edited)

I'm using this script:

$Printers_List = GUICtrlCreateCombo("", 64, 49, 193, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
; Import Printers Names From RegEdit
For $Pr = 1 To 100
$Printer_Name = RegEnumVal("HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts", $Pr)
If @error <> 0 Then ExitLoop
GUICtrlSetData($Printers_List, $Printer_Name)
Next

So I have the printers' names but i need to view its' settings, I saw a script that has an external DLL file and uses printing options, but It didn't help so much, I need to view the setting of every printer like MS OFFICE do. Is this available?

Thank you.

Edited by EKY32

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites



Solved like so: :)

Run('rundll32 printui.dll,PrintUIEntry /p /n"' & @ComputerName & '' & GUICtrlRead($Printers_List) & '"')

Replace GUICtrlRead($Printers_List) with your printer's name.

You can use the command "printui" running it from Command Prompt (DOS) and see a HUGE quantity of printing options!

Thank You, Me.


[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0