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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to two Printers from a Computer.

Status
Not open for further replies.

ISChana

Programmer
Dec 18, 2002
32
IN

Dear all

Please suggest...

How Can I print to two Printers from One System from VB application. e.g. I have Billing system on my computer . At this computer Laser Printer is installed and DMP is installed on network. then from this system I like to print Cash receipt detail to DMP printer and other reports to the Laser Printer. How this is possible. Pl. Suggest. Very urgently required.

thanks.

ISchana
 
I see that you've posted this question in several places. Is it a VB program that you're having problems with, or is this a system issue.

Regarding multiple postings, check out faq222-2244, which also gives tips on forum courtesy

If this is a VB problem use the Set Printer statement:

Dim prtDev As Printer
For Each prtDev In Printers
If prtDev.DeviceName = "\\Server\HP LaserJet 4Si" Then
Set Printer = prtDev
End If
Next
'print first bit
For Each prtDev In Printers
If prtDev.DeviceName = "DMP" Then
Set Printer = prtDev
End If
Next
'print next bit


You will have to do a debug.print inside the loop first time to find the proper names of your printers
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top