Results 1 to 18 of 18

Thread: [RESOLVED] Problem in sending the job to printer through API

Threaded View

  1. #1

    Thread Starter
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Resolved [RESOLVED] Problem in sending the job to printer through API

    Hi all,

    My default printer is kyosera 1000. I use following code to select the printer from a print dialog in external application:
    VB Code:
    1. hMain = FindWindow("#32770", "Print")
    2. hChild = FindWindowEx(hMain, 0, "ComboBox", vbNullString)
    3. nret = SendMessage(hChild, CB_FINDSTRINGEXACT, 0, "Kyosera 2500")
    4. If nret <> -1 Then
    5.     'To select the printer in combo
    6.     Call SendMessage(hChild, CB_SETCURSEL, nret, 0)
    7. End If
    The above code selects Kyosera 2500 without any issues. but prints on Kyosera 1000 which is my default printer.

    post me your suggestions.
    Last edited by cssriraman; May 6th, 2006 at 01:35 PM.
    CS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width