Selecting Printer through Code

M

Mota

Hello;
I have 2 reports,named OrdersRpt and PricesRpt,and want to print them by two
separate printers connected to my system.For now,i use this code to print
them by
default printer:

Private Sub cmdPrint_Click
DoCmd.OpenReport "OrdersRpt"
DoEvents
DoCmd.OpenReport "PricesRpt"
MsgBox "Two reports been printed
Successfully",VbOkOnly+VbInformation,"Printing Reports"
End Sub

The prints are followingly,but since paper sizes are not equal i preffer to
send them to two separate printers and print them synchronizingly.I want to
do this through CODE not thru Page SetUp Dialogue Box and what i need is a
Built In Function that can select multiple active printers connected to
system,and i've forgot it.
How can i do this?any suggestion?
Thank you so much in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top