Printing to specific network printer

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
 

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