Jump to content

Strange item values in combobox of printer dialog


 Share

Recommended Posts

Hi @ all,

I have a little problem with a combobox of the printer dialog. Let me explain:

In the first step I read out the installed printers and store them into an array. After some steps I reach a printer dialog where I want to select a specific printer from the array. I tried to use:

ControlCommand ("Drucken","","[CLASS:ComboBox; INSTANCE:1]","SelectString", $printerA4)

Because the command didn't work I read out the items of the Combobox like this:

$Combo = ControlGetHandle ( "Drucken", "", "[CLASS:ComboBox; INSTANCE:1]" )
   $sPrinter = _GUICtrlComboBox_GetList($Combo)
   MsgBox(0,"Printer",$sPrinter)

Now the strange thing. The items are containing any strange characters (see attachment)

Any Ideas?

Kind Regard

Stefan

post-80317-0-64614400-1390569882_thumb.j

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...