Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
S.Hanagan S.Hanagan is offline
external usenet poster
 
Posts: 3
Default Changing Printer Trays on Networked printers - Word 2003

This question has been discussed on numerous occassions and, at least up to
about six months ago, no one had been able to arrive at a solution. Thought
I would give it another try.

Here goes. Small office enviroment. Multiple computers and multiple
printers. Two printers, we'll call upstairs and downstairs are in question.
One is an HP4350, the other is an HP Laserjet 5. Upstairs uses tray codes of
262 and 261 for upper and lower trays. Downstairs uses codes
"wdPrinterUpperBin" and wdPrinterLowerBin."

A letter is printed to one or the other via a macro "Print_Letter."
Letterhead paper is kept in the top tray of each printer and plain white
paper is kept in the bottom. The macro/VBA Code does just fine selecting the
proper printer and printer port.

The way the code works (it worked for years with Windows 98 and XP and HP
4's and 5's) is that the all of the pages are first printed on the letterhead
paper, then the code inserts some ID information and a file copy of all the
pages is printed on plain paper.

All of this macro works fine with one exception. I can't seem to find a
reliable way to switch trays from the upper tray to the lower tray for the
file copy of the letter.

Using the page setup and changing the tray works fine from the console, but
if you record a macro and try to play it, it won't work. I've been through
about every combination of possible solutions, including changing the default
tray and trying to print to the default tray. Nothing seems to work.
Changing the FirstPage and OtherPage codes (eg. 261 and wdPrinterLowerBin)
seem to have no reliable effect, although on occassion one or both of the
printers will decide to print everything (both letter and copy) from the
upper or lower tray.

Does anyone have any suggestions?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jonathan West Jonathan West is offline
external usenet poster
 
Posts: 25
Default Changing Printer Trays on Networked printers - Word 2003


"S.Hanagan" wrote in message
...
This question has been discussed on numerous occassions and, at least up
to
about six months ago, no one had been able to arrive at a solution.
Thought
I would give it another try.

Here goes. Small office enviroment. Multiple computers and multiple
printers. Two printers, we'll call upstairs and downstairs are in
question.
One is an HP4350, the other is an HP Laserjet 5. Upstairs uses tray codes
of
262 and 261 for upper and lower trays. Downstairs uses codes
"wdPrinterUpperBin" and wdPrinterLowerBin."

A letter is printed to one or the other via a macro "Print_Letter."
Letterhead paper is kept in the top tray of each printer and plain white
paper is kept in the bottom. The macro/VBA Code does just fine selecting
the
proper printer and printer port.

The way the code works (it worked for years with Windows 98 and XP and HP
4's and 5's) is that the all of the pages are first printed on the
letterhead
paper, then the code inserts some ID information and a file copy of all
the
pages is printed on plain paper.

All of this macro works fine with one exception. I can't seem to find a
reliable way to switch trays from the upper tray to the lower tray for the
file copy of the letter.

Using the page setup and changing the tray works fine from the console,
but
if you record a macro and try to play it, it won't work. I've been
through
about every combination of possible solutions, including changing the
default
tray and trying to print to the default tray. Nothing seems to work.
Changing the FirstPage and OtherPage codes (eg. 261 and wdPrinterLowerBin)
seem to have no reliable effect, although on occassion one or both of the
printers will decide to print everything (both letter and copy) from the
upper or lower tray.

Does anyone have any suggestions?


Take a look at this article

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


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting WordPerfect 12 files to Word 2003 Curious New Users 4 May 19th 23 02:48 PM
How to put graphics on envelopes? Steve Koenig Microsoft Word Help 21 April 29th 23 02:47 AM
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
Word 2003: Changing the increase/decrease rate of the indent icon? hayakaw1 Microsoft Word Help 11 December 22nd 08 09:58 PM
WP merge file to Word sstires Tables 4 February 14th 06 06:26 PM


All times are GMT +1. The time now is 06:45 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"