In other threads about this topic, this macro is provided for printing.
Dim i As Long
With ActiveDocument
For i = 1 To .Sections.Count
.PrintOut Range:=wdPrintFromTo, From:="s" & i, To:="s" & i
Next i
End With
This is great, except but I don't want it to automatically go to a printer.
This macro will not work as-is for my purposes, as the user must have the
merged document, then select the printer from the network and the paper trays
for that printer. Can you tell me how to change this macro so it reformats
the merged document only, without sending it directly to the printer So after
reformatting, the user selects the network printer and it's settings, the
user presses print. Thanks in advance for your help and suggestions.
> In theory Word ought to get this right, but it seems to depend on the print
> driver whether it actually works or not. If you can't make it work, I think
[quoted text clipped - 27 lines]
> > achieve the correct paper tray selections, knowing that I have section
> > breaks?
Peter Jamieson - 17 Nov 2006 19:46 GMT
1. In theory, Word lets you specify a source paper tray for
a. the first page in each section of a document
b the subsequent pages in each section of a document.
In other words, if you have a document with two sections 1 and 2, with pages
1:1-1:3 and 2:1-2:5 respectively, you could in theory tell Word to output
a. Section 1, page 1, using paper tray Z
b. Section 1, pages 2-3, using paper tray Y
c. Section 2, page 1, using paper tray X
d. Section 2, pages 2-5, using paper tray W
Experiment A
Forgetting about mailmerge altogether, you should be able to set up a test
document with multiple sections and multiple pages per section that lets you
examine what your Word+printer driver+printer does with this kind of
document.
If your printer+printer driver deals with all this stuff as you might hope,
there is in theory some chance that mailmerge will also do what you need.
Experiment B
Try outputting your mailmerge to a new document, and examine whether each
section's first page and subsequent pages are associated with the printer
tray you expect.
If Experiment A performs as you expect, but Experiment B does not, I can
only assume that mailmerge does something that confuses Word. But my guess
is that neither Experiment A nor Experiment B does as you want. If that is
so,
a. there's a case for contacting the author of your printer driver
b. using the "one merge per record in the data source" approach I've
mentioned before is probably the best approach, even though I am sure it
isn't what you wanted.
Sorry this has ended in a lot of "ifs and buts"!
Peter Jamieson
> In other threads about this topic, this macro is provided for printing.
>
[quoted text clipped - 56 lines]
>> > achieve the correct paper tray selections, knowing that I have section
>> > breaks?