G
Gary
Below is how I set a printer to print to a specific
printer hooked directly to the computer the user is
using. How do I specify a printer on someone else's
computer? For instance "printer1 on Donnacomputer". I
have tried using the naming convention that XP Pro gives
the printer in the printers dialog box but this doesn't
work like a local printer. Any help would be
appreciated. All computers use XP PRO.
Dim RPT As Report
DoCmd.OpenReport "PrintPaymentSlips", acViewPreview
Set RPT = Reports("PrintPaymentSlips")
RPT.Printer = Application.Printers("printer1")
With RPT.Printer
.Orientation = acPRORPortrait
.PaperSize = acPRPSA4
End With
DoCmd.PrintOut
DoCmd.close acReport, "PrintPaymentSlips", acSaveNo
printer hooked directly to the computer the user is
using. How do I specify a printer on someone else's
computer? For instance "printer1 on Donnacomputer". I
have tried using the naming convention that XP Pro gives
the printer in the printers dialog box but this doesn't
work like a local printer. Any help would be
appreciated. All computers use XP PRO.
Dim RPT As Report
DoCmd.OpenReport "PrintPaymentSlips", acViewPreview
Set RPT = Reports("PrintPaymentSlips")
RPT.Printer = Application.Printers("printer1")
With RPT.Printer
.Orientation = acPRORPortrait
.PaperSize = acPRPSA4
End With
DoCmd.PrintOut
DoCmd.close acReport, "PrintPaymentSlips", acSaveNo