Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Noel Noel is offline
external usenet poster
 
Posts: 30
Default mailmerge print page set up

I have a 4 page letter that has a mailmerge and so there are several
different people that this letter prints for. The first page of each person
should be printed on letterhead and the remaining pages on regular paper. It
is not recognizing the page set up and printing all of them on letterhead.
Thanks
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default mailmerge print page set up

Here's a message from Graham Mayor (with a quote from me!) which may
help.Note that themacro will only work if you have exactly one output
document for each record in the data source.

---------------------------------------------------------------------------

This is not an uncommon problem and is probably attributable to limitations
in the printer driver and/or an incorrect setting in the printer options.

Different printers have different views of what the tray commands are so a
document setup for one printer may not work when printed on another.


There are a couple of possible workarounds.


If your printer driver accepts PCL commands, you could use a Print field at
the top of each page to send out the PCL command that will force the printer
to print that page from the required tray. A PRINT field is simply a type of
field that allows you to send instructions directly to the printer.
{ PRINT 27"&l1H" } - Tray 2
{ PRINT 27"&l4H" } - Tray 3
(but do check these commands with your printer manual as there are
variations).


or you could use a macro - this one was suggested by Peter Jamieson


Sub PrintOneDocPerSourceRec()
Dim intSourceRecord
Dim objMerge As Word.MailMerge
'Dim strOutputDocumentName As String
Dim TerminateMerge As Boolean


' Need to set up this object as the ActiveDocument changes when the
' merge is performed. Besides, it's clearer.


Set objMerge = ActiveDocument.MailMerge
With objMerge


' If no data source has been defined, do it here using OpenDataSource.
' But if it is already defined in the document, you should not need
' to define it here.


' .OpenDataSource _
' Name:="whatever"


intSourceRecord = 1
TerminateMerge = False


Do Until TerminateMerge
.DataSource.ActiveRecord = intSourceRecord


' if we have gone past the end (and possibly, if there are no records)
' then the Activerecord will not be what we have just tried to set it to


If .DataSource.ActiveRecord intSourceRecord Then
TerminateMerge = True
' the record exists
Else


.DataSource.FirstRecord = intSourceRecord
.DataSource.LastRecord = intSourceRecord
.Destination = wdSendToPrinter
.Execute


intSourceRecord = intSourceRecord + 1
End If
Loop
End With
End Sub

---------------------------------------------------------------------------


--
Peter Jamieson
http://tips.pjmsn.me.uk

"Noel" wrote in message
news
I have a 4 page letter that has a mailmerge and so there are several
different people that this letter prints for. The first page of each
person
should be printed on letterhead and the remaining pages on regular paper.
It
is not recognizing the page set up and printing all of them on letterhead.
Thanks


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
Mailmerge & Print events Andrew Kennard[_2_] Mailmerge 3 May 9th 07 02:16 PM
Mailmerge Word 2003 - multipage letter first page only to print on letterhead Sara-Jane Bunting Mailmerge 2 June 9th 06 04:39 AM
how do i get the mailmerge labels to print right? helpless Mailmerge 1 January 4th 06 01:49 PM
Using mailmerge, print to 4 columns, 2 at a time Caseybay Mailmerge 1 October 20th 05 09:42 PM
How to print mailmerge multipage with 1st page on diff paper electric Mailmerge 3 October 10th 05 01:40 AM


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