Connecting Tech Pros Worldwide Help | Site Map

Printing Reports to Multiple Printers

  #1  
Old November 13th, 2005, 02:32 AM
TheThrill
Guest
 
Posts: n/a
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, 02:32 AM
John Winterbottom
Guest
 
Posts: n/a

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


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from an ASP.NET page Brett answers 18 July 21st, 2008 03:15 AM
Printing issues Russ answers 4 November 18th, 2005 06:06 PM
HOWTO: Automate Printing of Access Reports to PDF files cyranoVR@gmail.com answers 16 November 13th, 2005 08:44 AM
Access expoert reports to PDF using PDF writer 6.0 issues Grasshopper answers 11 November 13th, 2005 07:08 AM