Connecting Tech Pros Worldwide Help | Site Map

Printing Reports to Multiple Printers

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:32 AM
TheThrill
Guest
 
Posts: n/a
Default Printing Reports to Multiple Printers

I've got a report, Report1 that i want to print to network Printers A,
B, C all with one key stroke. How do i do this?

  #2  
Old November 13th, 2005, 01:32 AM
John Winterbottom
Guest
 
Posts: n/a
Default Re: Printing Reports to Multiple Printers

"TheThrill" <emailthethrill@yahoo.com> wrote in message
news:b23ce493.0408021455.70c2ec35@posting.google.c om...[color=blue]
> I've got a report, Report1 that i want to print to network Printers A,
> B, C all with one key stroke. How do i do this?[/color]

(Assuming Access XP or higher)

Sub PrintMyReports()
Call printReport("Report1", "PrinterA")
Call printReport("Report1", "PrinterB")
Call printReport("Report1", "PrinterC")
End Sub

Sub printReport(ByVal strReportName As String, strPrinterName As String)
Set Applicateion.Printer = Application.Printers(strPrinterName)
DoCmd.OpenReport strReportname, acViewNormal
End Sub

If you want to know what printers you have installed you can loop through
the Printers collection of the Application object:

Sub ListMyPrinters()
Dim prn As Printer
For Each prn In Application.Printers
Debug.Print prn.DeviceName
Next prn
End Sub


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.