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 / April 2007

Tip: Looking for answers? Try searching our database.

looking for a simple print solution in a template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
averbunt - 19 Apr 2007 20:28 GMT
We often need to print official letters (two different paper trays). When we
print them we also want a copy on blanc paper (third paper tray).

To save time in choosing printers, paper trays, repeated print commands etc.
I would like to know if there is a simple solution to include in a template
that ensures the choosing right printer and paper source + an extra copy on
blanc paper when you use the quick print button?
Jonathan West - 20 Apr 2007 11:57 GMT
> We often need to print official letters (two different paper trays). When
> we
[quoted text clipped - 7 lines]
> on
> blanc paper when you use the quick print button?

It is perfectly possible to write a VBA macro to do this. If you want the
macro to run automatically when the user click the printer icon, you give
the macro the name FilePrintDefault. It then runs instead of the built-in
Word command of the same name.

Now, such a macro isn't necessarily *simple*. How complex it is depends on a
variety of factors.

For instance, do you need to support more than one make & model of printer?
If so, you have to cope with the fact that different printers give different
tray ID numbers to their paper trays, and almost all the IDs do not match
the built-in constants offered for the purpose by VBA. This article explains
the gruesome details.

Controlling the Printer from Word VBA
Part 1: Using VBA to Select the Paper Tray
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=101

Then there is the question of whether you are printing duplex. If you are,
then printing the first two pages of a letter onto the front and back of a
sheet of paper from one tray, and then the rest of the letter duplex from
paper from another tray is complex. If you just set the FirstPageTray and
OtherPagesTray properties to different trays, what happens is that page 1
gets printed single sided from the first tray, and page 2 starts on a fresh
sheet from the other tray. What you have to do is set both the FirstPageTray
and OtherPagesTray properties to the letterhead tray, print the first 2
pages, then set the OtherPagesTray to your other tray, and then print the
rest of the letter.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

 
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.