Reply
 
Thread Tools Display Modes
  #1   Report Post  
John C Brainard
 
Posts: n/a
Default Select Printer Tray In Different Spots Within a Document

I have a billing file that i have a problem with. This particluar customer
wants the first page of the bills printed on a form, which will be in 1 tray,
and the remaining pages printed on white paper, which will be in tray 2. The
document comes to me in a text spool file, i can get it into Word, but do not
know how to change in to different trays within Word. I know that if i were
printing a booklet or something that i can select to have the first page
print out of 1 tray, and the others out of another tray.

Each file that i get contains 5000 bills. 1 bill could be 3 pages, the next
one could be 18 pages.

I will be duplex printing these pages.
  #2   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

If you set up the document to use a specific tray for the first page and a
different tray for the rest and then insert Next Page section breaks between
bills, you'll get the effect you want (since the tray settings will be used
for each section. What you'll need to do is figure out how to insert the
section breaks automatically. If you can identify specific text that always
occurs at the beginning of a bill, you can use Find and Replace to do your
dirty work:

1. Insert a Next Page section break, select it, and Copy.

2. In the "Find what" box of the Replace dialog, type the text that begins
each bill.

3. In the "Replace with" box, type ^c^&. ^c inserts the contents of the
Clipboard; ^& inserts the "Find What Text," that is, what you were searching
for. The result will be your section break inserted before the text.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"John C Brainard" John C wrote in
message ...
I have a billing file that i have a problem with. This particluar

customer
wants the first page of the bills printed on a form, which will be in 1

tray,
and the remaining pages printed on white paper, which will be in tray 2.

The
document comes to me in a text spool file, i can get it into Word, but do

not
know how to change in to different trays within Word. I know that if i

were
printing a booklet or something that i can select to have the first page
print out of 1 tray, and the others out of another tray.

Each file that i get contains 5000 bills. 1 bill could be 3 pages, the

next
one could be 18 pages.

I will be duplex printing these pages.


  #3   Report Post  
John C Brainard
 
Posts: n/a
Default

I haven't been able to get it totally working. Here is the code i am using.
I can't seem to get the section break to work before i replace the data. the
line wiht the astrixes is the line giving me trouble

With Selection.Find
.Text = "
__________________________________________________ ______________________________________________" & "^l" & " APR 1 - 2005 "
******* .Replacement.Text = Selection.InsertBreak & "^&"
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.Find.Execute Replace:=wdReplaceAl

"Suzanne S. Barnhill" wrote:

If you set up the document to use a specific tray for the first page and a
different tray for the rest and then insert Next Page section breaks between
bills, you'll get the effect you want (since the tray settings will be used
for each section. What you'll need to do is figure out how to insert the
section breaks automatically. If you can identify specific text that always
occurs at the beginning of a bill, you can use Find and Replace to do your
dirty work:

1. Insert a Next Page section break, select it, and Copy.

2. In the "Find what" box of the Replace dialog, type the text that begins
each bill.

3. In the "Replace with" box, type ^c^&. ^c inserts the contents of the
Clipboard; ^& inserts the "Find What Text," that is, what you were searching
for. The result will be your section break inserted before the text.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"John C Brainard" John C wrote in
message ...
I have a billing file that i have a problem with. This particluar

customer
wants the first page of the bills printed on a form, which will be in 1

tray,
and the remaining pages printed on white paper, which will be in tray 2.

The
document comes to me in a text spool file, i can get it into Word, but do

not
know how to change in to different trays within Word. I know that if i

were
printing a booklet or something that i can select to have the first page
print out of 1 tray, and the others out of another tray.

Each file that i get contains 5000 bills. 1 bill could be 3 pages, the

next
one could be 18 pages.

I will be duplex printing these pages.



  #4   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

For help with a macro solution, try posting in one of the word.vba NGs.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"John C Brainard" wrote in message
...
I haven't been able to get it totally working. Here is the code i am

using.
I can't seem to get the section break to work before i replace the data.

the
line wiht the astrixes is the line giving me trouble

With Selection.Find
.Text = "

__________________________________________________ __________________________
____________________" & "^l" & " APR 1 - 2005 "
******* .Replacement.Text = Selection.InsertBreak & "^&"
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.Find.Execute Replace:=wdReplaceAl

"Suzanne S. Barnhill" wrote:

If you set up the document to use a specific tray for the first page and

a
different tray for the rest and then insert Next Page section breaks

between
bills, you'll get the effect you want (since the tray settings will be

used
for each section. What you'll need to do is figure out how to insert the
section breaks automatically. If you can identify specific text that

always
occurs at the beginning of a bill, you can use Find and Replace to do

your
dirty work:

1. Insert a Next Page section break, select it, and Copy.

2. In the "Find what" box of the Replace dialog, type the text that

begins
each bill.

3. In the "Replace with" box, type ^c^&. ^c inserts the contents of the
Clipboard; ^& inserts the "Find What Text," that is, what you were

searching
for. The result will be your section break inserted before the text.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the

newsgroup so
all may benefit.

"John C Brainard" John C wrote in
message ...
I have a billing file that i have a problem with. This particluar

customer
wants the first page of the bills printed on a form, which will be in

1
tray,
and the remaining pages printed on white paper, which will be in tray

2.
The
document comes to me in a text spool file, i can get it into Word, but

do
not
know how to change in to different trays within Word. I know that if

i
were
printing a booklet or something that i can select to have the first

page
print out of 1 tray, and the others out of another tray.

Each file that i get contains 5000 bills. 1 bill could be 3 pages,

the
next
one could be 18 pages.

I will be duplex printing these pages.




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
Envelope printing needs printer options dialog (Word 2003 suggesti DavidHBrown Microsoft Word Help 0 April 13th 05 05:43 AM
HP Printer Printing on Every Other Sheet from Word 03 Chad Harris New Users 1 February 23rd 05 08:20 PM
Laserjet 4 and MS Word prints only from main tray. Can't print from MP tray. [email protected] Microsoft Word Help 6 January 16th 05 09:43 PM
No Default Printer Jeff W Microsoft Word Help 2 January 12th 05 01:59 PM
do I need a printer driver for my printer sue Microsoft Word Help 1 November 26th 04 03:05 AM


All times are GMT +1. The time now is 04:04 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"