DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: OT VB6 Print

  1. #1
    Petr D. Guest

    OT VB6 Print

    Hi,
    I want print from my VB6.0/NT4.0 application
    on 2 printers.
    First printer is graphic printer for security photo copy and
    Second printer i security protocol printer.
    My VB6.0 app. print only on windows default printer.

    Question:
    How I change the windows default printer from code
    without CommonDialog.ShowPrinter?
    Let us say: How my application print on 2 printers?

    Thanks,
    Petr



  2. #2
    Mike D Sutton Guest

    Re: OT VB6 Print

    > I want print from my VB6.0/NT4.0 application
    > on 2 printers.
    > First printer is graphic printer for security photo copy and
    > Second printer i security protocol printer.
    > My VB6.0 app. print only on windows default printer.
    >
    > Question:
    > How I change the windows default printer from code
    > without CommonDialog.ShowPrinter?
    > Let us say: How my application print on 2 printers?


    Do some research into the Print*() API functions, the common dialog control
    is really nothing more than a wrapper for a bunch of API's with a UI.
    Hope this helps,

    Mike


    -- EDais --

    WWW: Http://www20.Brinkster.com/EDais/
    Work E-Mail: EDais@btclick.com
    Other E-Mail: Mike.Sutton@btclick.com



  3. #3
    Petr D. Guest

    Re: OT VB6 Print

    Thanks Mike.
    Petr



  4. #4
    Dean Earley Guest

    Re: OT VB6 Print

    To specify which printer to use for that application session try this

    for each x in printers
    if x.devicename="security protocol printer" then set printer=x
    next

    This is off the top of my head, but it should be correct
    Replace the "security protocol printer" with the actual device name of the printer you want.

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Petr D." <escad@escad.cz> wrote in message news:3b8b5259@news.devx.com...
    > Hi,
    > I want print from my VB6.0/NT4.0 application
    > on 2 printers.
    > First printer is graphic printer for security photo copy and
    > Second printer i security protocol printer.
    > My VB6.0 app. print only on windows default printer.
    >
    > Question:
    > How I change the windows default printer from code
    > without CommonDialog.ShowPrinter?
    > Let us say: How my application print on 2 printers?
    >
    > Thanks,
    > Petr
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center