Results 1 to 3 of 3

Thread: Select a printer

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    I have two identical printers installed in the same PC/Win98. I use this code to select the printer.

    Code:
    Dim prnObj as Printer
    For each prnObj In Printers
       if prnObj.DeviceName = "X Printer" then
          Set Printer=prnObj
       end if
    next
    This printer is attahced in a LPT2: port.
    I use several printer methods but the priting job always go to printer in LPT1: (default printer).

    Any idea will be deeply appreciated.

    Thanks!

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Location
    Sydney,NSW,Australia
    Posts
    178

    Post

    Have you tried using the common dialog printer selection control. Haven't had this problem on a network, but then again we just supply the common dialog in apps and allow the users to select. It sounds like even though you are changing the printer, vb is handing the print job to windows, which is using the default printer. Maybe there is a set default printer obtion somewhere in vb, or as an api call

  3. #3
    Member
    Join Date
    May 1999
    Location
    St. Louis, MO, USA
    Posts
    54

    Post

    I'm having problems changing printers when using the CDL print. Do you have an example of how to use the cdl printer to set the printer the user wants?

    Any help would be appreciated thanks
    Jennifer

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