Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I print to multiple printers?

Status
Not open for further replies.

ITdev

Programmer
Aug 6, 2001
25
US
Hi,
I am developing a POS system where I need to send drink orders to the bar and food orders to the kitchen. There are two different printers where the orders are sent to. I would like to know if anyone has any suggestions or know of a website I can research how to do this. I appreciate any help anyone can offer.

 
Well, I'm not sure what or how you're printing.. but It's easy enough to get the printer objects for each printer:

Code:
    Dim prnPrinter As Printer
    Dim prnFood As Printer
    Dim prnDrink As Printer
    
    For Each prnPrinter In VB.Printers
        Select Case prnPrinter.DeviceName
            Case "FoodPrinterDeviceName"
                Set prnFood = prnPrinter
            Case "DrinkPrinterDeviceName"
                Set prnDrink = prnPrinter
        End Select
    Next prnPrinter

Anything Else?

--NipsMG s-)
 
Thanks for the advice, I'll try it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top