Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

specify a specific printer in a document or template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DonK - 21 Nov 2005 17:07 GMT
I'd like to have a document ALWAYS print to a specific networked printer, not
the default printer.  is there a way to specify that in the document or
template?
zkid - 22 Nov 2005 22:20 GMT
As far as I know, it has to be done programmically.  You can trap the print
statement and place code similar to that below in that particular document.  
Make sure you re-set the printer back to the user's default after printing.

Hint:  Get the exat printer name by recording key strokes to send to that
printer

Dim strCurrentPrinter as string

'Grab the user's existing printer default

strCurrentPrinter = ActivePrinter

'Reset to the printer of your choice

ActivePrinter = "[name of your printer and path" '(i.e., "\\network name\HP
LaserJet 9000 Series")

'If you want to allow the user to print only parts of the doc, show the
print dialog

   Dialogs(wdDialogFilePrint).Show

'Use the following code to set bins if you wish

   With ActiveDocument.PageSetup
       .FirstPageTray = wdPrinterAutomaticSheetFeed
       .OtherPagesTray = wdPrinterAutomaticSheetFeed
   End With

'Re-set back to the user's pre-selected printer

ActivePrinter = strCurrentPrinter

Hope this helps

> I'd like to have a document ALWAYS print to a specific networked printer, not
> the default printer.  is there a way to specify that in the document or
> template?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.