Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Julia Julia is offline
external usenet poster
 
Posts: 26
Default Lost formatting in nested doc in merge

Hi-
I am using Word 2007 to generate letters from a 3rd party program via the
merge feature.

There is a library of letters the user can choose from in the other
software. Multiple letters can be selected, and put in a queue. The user also
chooses record(s) to run the merge on.

On the Word side, I open a "standard" template which contains fieldcodes for
all of the data fields and run a macro which does the following:
1. Loads the record data fields into memory
2. Nests the letter template(s) into the "standard" template based on a
field code which references which letter(s) should be used.
3. Populates the fields in the letter(s) based on the data loaded in step 1.

Generally, this works fine. However, I now need to generate a letter that
contains a first page in portrait mode, second page landscape; plus a
watermark that does not print on the first page but prints on subsequent
pages. I have created a letter template with these features, and if I do a
manual merge, it runs fine and looks great. However, if I do the merge the
automated way through the macro, I lose the special formatting in my letter-
I suspect because the formatting in my "standard" template is overwriting it.

I know this is really complicated. :-( Anyone have any ideas how to preserve
the formatting in a nested document in a merge?

TIA-
Julia
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Lost formatting in nested doc in merge

Formatting details such as page orientation, headers and footers are stored
in Section Breaks or the final paragraph mark of a document. Possibly if
you put a Continuous Section Break at the end of your letter template, those
details will be retained.

If you showed the code of the macro, it might be possible to offer other
advice.

From your description of the operation, I am guessing that this sysem is
probably mostly used for creating mutliple letters with differing content
from just the one record. If that is the case, mail merge may not be the
best way of doing it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi-
I am using Word 2007 to generate letters from a 3rd party program via the
merge feature.

There is a library of letters the user can choose from in the other
software. Multiple letters can be selected, and put in a queue. The user
also
chooses record(s) to run the merge on.

On the Word side, I open a "standard" template which contains fieldcodes
for
all of the data fields and run a macro which does the following:
1. Loads the record data fields into memory
2. Nests the letter template(s) into the "standard" template based on a
field code which references which letter(s) should be used.
3. Populates the fields in the letter(s) based on the data loaded in step
1.

Generally, this works fine. However, I now need to generate a letter that
contains a first page in portrait mode, second page landscape; plus a
watermark that does not print on the first page but prints on subsequent
pages. I have created a letter template with these features, and if I do a
manual merge, it runs fine and looks great. However, if I do the merge the
automated way through the macro, I lose the special formatting in my
letter-
I suspect because the formatting in my "standard" template is overwriting
it.

I know this is really complicated. :-( Anyone have any ideas how to
preserve
the formatting in a nested document in a merge?

TIA-
Julia


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Julia Julia is offline
external usenet poster
 
Posts: 26
Default Lost formatting in nested doc in merge

Hi Doug-

I have tried putting in a section break at the beginning and end of the
document, and the results were better, but still not optimal.

I ran the merge manually in Word to see if the issue was the output from our
software or something in Word. I found that running the merge manually gave
me output with the correct page orientation (alternating portrait/landscape),
but it seems once the watermark was "turned on", it did not get turned off
when going from one record to the next.

Any ideas?

Also, FYI merge from our software is for multiple letters from multiple
records...

TIA-
Julia

"Doug Robbins - Word MVP" wrote:

Formatting details such as page orientation, headers and footers are stored
in Section Breaks or the final paragraph mark of a document. Possibly if
you put a Continuous Section Break at the end of your letter template, those
details will be retained.

If you showed the code of the macro, it might be possible to offer other
advice.

From your description of the operation, I am guessing that this sysem is
probably mostly used for creating mutliple letters with differing content
from just the one record. If that is the case, mail merge may not be the
best way of doing it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi-
I am using Word 2007 to generate letters from a 3rd party program via the
merge feature.

There is a library of letters the user can choose from in the other
software. Multiple letters can be selected, and put in a queue. The user
also
chooses record(s) to run the merge on.

On the Word side, I open a "standard" template which contains fieldcodes
for
all of the data fields and run a macro which does the following:
1. Loads the record data fields into memory
2. Nests the letter template(s) into the "standard" template based on a
field code which references which letter(s) should be used.
3. Populates the fields in the letter(s) based on the data loaded in step
1.

Generally, this works fine. However, I now need to generate a letter that
contains a first page in portrait mode, second page landscape; plus a
watermark that does not print on the first page but prints on subsequent
pages. I have created a letter template with these features, and if I do a
manual merge, it runs fine and looks great. However, if I do the merge the
automated way through the macro, I lose the special formatting in my
letter-
I suspect because the formatting in my "standard" template is overwriting
it.

I know this is really complicated. :-( Anyone have any ideas how to
preserve
the formatting in a nested document in a merge?

TIA-
Julia



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Lost formatting in nested doc in merge

I am not sure that putting a Section Break at the beginning is necessary,
and it may be better without it, but I think that the Watermark issue may be
solved if in the mail merge main document, you go to the header of the last
Section of that document (the one after the Continuous Section Break and you
unlink the header in that Section from the header in the previous Section.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi Doug-

I have tried putting in a section break at the beginning and end of the
document, and the results were better, but still not optimal.

I ran the merge manually in Word to see if the issue was the output from
our
software or something in Word. I found that running the merge manually
gave
me output with the correct page orientation (alternating
portrait/landscape),
but it seems once the watermark was "turned on", it did not get turned off
when going from one record to the next.

Any ideas?

Also, FYI merge from our software is for multiple letters from multiple
records...

TIA-
Julia

"Doug Robbins - Word MVP" wrote:

Formatting details such as page orientation, headers and footers are
stored
in Section Breaks or the final paragraph mark of a document. Possibly if
you put a Continuous Section Break at the end of your letter template,
those
details will be retained.

If you showed the code of the macro, it might be possible to offer other
advice.

From your description of the operation, I am guessing that this sysem is
probably mostly used for creating mutliple letters with differing content
from just the one record. If that is the case, mail merge may not be the
best way of doing it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi-
I am using Word 2007 to generate letters from a 3rd party program via
the
merge feature.

There is a library of letters the user can choose from in the other
software. Multiple letters can be selected, and put in a queue. The
user
also
chooses record(s) to run the merge on.

On the Word side, I open a "standard" template which contains
fieldcodes
for
all of the data fields and run a macro which does the following:
1. Loads the record data fields into memory
2. Nests the letter template(s) into the "standard" template based on a
field code which references which letter(s) should be used.
3. Populates the fields in the letter(s) based on the data loaded in
step
1.

Generally, this works fine. However, I now need to generate a letter
that
contains a first page in portrait mode, second page landscape; plus a
watermark that does not print on the first page but prints on
subsequent
pages. I have created a letter template with these features, and if I
do a
manual merge, it runs fine and looks great. However, if I do the merge
the
automated way through the macro, I lose the special formatting in my
letter-
I suspect because the formatting in my "standard" template is
overwriting
it.

I know this is really complicated. :-( Anyone have any ideas how to
preserve
the formatting in a nested document in a merge?

TIA-
Julia




  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Julia Julia is offline
external usenet poster
 
Posts: 26
Default Lost formatting in nested doc in merge

For those that are interested....

the light bulb finally came on for me. :-) I solved this by not trying to do
the graphic as a watermark, and placed it as a manual grpahic on the required
pages instead.

"Doug Robbins - Word MVP" wrote:

I am not sure that putting a Section Break at the beginning is necessary,
and it may be better without it, but I think that the Watermark issue may be
solved if in the mail merge main document, you go to the header of the last
Section of that document (the one after the Continuous Section Break and you
unlink the header in that Section from the header in the previous Section.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi Doug-

I have tried putting in a section break at the beginning and end of the
document, and the results were better, but still not optimal.

I ran the merge manually in Word to see if the issue was the output from
our
software or something in Word. I found that running the merge manually
gave
me output with the correct page orientation (alternating
portrait/landscape),
but it seems once the watermark was "turned on", it did not get turned off
when going from one record to the next.

Any ideas?

Also, FYI merge from our software is for multiple letters from multiple
records...

TIA-
Julia

"Doug Robbins - Word MVP" wrote:

Formatting details such as page orientation, headers and footers are
stored
in Section Breaks or the final paragraph mark of a document. Possibly if
you put a Continuous Section Break at the end of your letter template,
those
details will be retained.

If you showed the code of the macro, it might be possible to offer other
advice.

From your description of the operation, I am guessing that this sysem is
probably mostly used for creating mutliple letters with differing content
from just the one record. If that is the case, mail merge may not be the
best way of doing it.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Julia" wrote in message
...
Hi-
I am using Word 2007 to generate letters from a 3rd party program via
the
merge feature.

There is a library of letters the user can choose from in the other
software. Multiple letters can be selected, and put in a queue. The
user
also
chooses record(s) to run the merge on.

On the Word side, I open a "standard" template which contains
fieldcodes
for
all of the data fields and run a macro which does the following:
1. Loads the record data fields into memory
2. Nests the letter template(s) into the "standard" template based on a
field code which references which letter(s) should be used.
3. Populates the fields in the letter(s) based on the data loaded in
step
1.

Generally, this works fine. However, I now need to generate a letter
that
contains a first page in portrait mode, second page landscape; plus a
watermark that does not print on the first page but prints on
subsequent
pages. I have created a letter template with these features, and if I
do a
manual merge, it runs fine and looks great. However, if I do the merge
the
automated way through the macro, I lose the special formatting in my
letter-
I suspect because the formatting in my "standard" template is
overwriting
it.

I know this is really complicated. :-( Anyone have any ideas how to
preserve
the formatting in a nested document in a merge?

TIA-
Julia




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
Mail merge nested if phil Mailmerge 2 November 21st 07 02:14 PM
Mail merge with nested forms KP Mailmerge 3 April 21st 07 11:05 AM
Formatting - Tables Nested In Fields msnews.microsoft.com Mailmerge 2 June 27th 06 09:25 AM
Nested mail merge Lennert Acke Mailmerge 3 August 22nd 05 08:23 AM
Image won't retain formatting in nested INCLUDEPICTURE field 2dogs Mailmerge 1 May 11th 05 11:56 AM


All times are GMT +1. The time now is 02:24 AM.

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"