Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I have a code that merge some .doc files into one .doc file. the code is just
like this: foreach(string mFile in mFiles) { documentoFinal.Application.Selection.InsertFile(mF ile, ref vazio, ref vazio, ref vazio, ref vazio); documentoFinal.Application.Selection.InsertBreak(r ef oBreak); } But the format of the Headers and Footnotes cam always with the first file that I input! Why he do that and how can I solve this problem? |
#2
![]() |
|||
|
|||
![]()
Hi Marcos,
To have different headers and footers, each added document would have to follow a section break with the 'same as previous' value set to false for both the header and the footer. Then you can add the headers and footers for each document. Cheers "Marcos" wrote in message ... I have a code that merge some .doc files into one .doc file. the code is just like this: foreach(string mFile in mFiles) { documentoFinal.Application.Selection.InsertFile(mF ile, ref vazio, ref vazio, ref vazio, ref vazio); documentoFinal.Application.Selection.InsertBreak(r ef oBreak); } But the format of the Headers and Footnotes cam always with the first file that I input! Why he do that and how can I solve this problem? |
#3
![]() |
|||
|
|||
![]()
Hey Macropod!
Thanks for your help, but I did not understood wher should I change this value you called "'same as previous' value". I looked in the InsertFile and in the InsertBreak, but that wasn´t a parameter with that name. I tried to insert a section break of the type Word.WdBreakType.wdSectionBreakContinuous, but still it doesn´t work. Thanks in advance Marcos "macropod" wrote: Hi Marcos, To have different headers and footers, each added document would have to follow a section break with the 'same as previous' value set to false for both the header and the footer. Then you can add the headers and footers for each document. Cheers "Marcos" wrote in message ... I have a code that merge some .doc files into one .doc file. the code is just like this: foreach(string mFile in mFiles) { documentoFinal.Application.Selection.InsertFile(mF ile, ref vazio, ref vazio, ref vazio, ref vazio); documentoFinal.Application.Selection.InsertBreak(r ef oBreak); } But the format of the Headers and Footnotes cam always with the first file that I input! Why he do that and how can I solve this problem? |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
1st word in heading flush left second word flush right | New Users | |||
creating forms | Microsoft Word Help | |||
In typing dates in Word, i.e. "January 12" how do you keep the "1. | Microsoft Word Help | |||
WP Delay Code - Word Equiv | Microsoft Word Help | |||
How to change merge forms from Word Perfect to Microsoft Word | Microsoft Word Help |