Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi,
Like many others before, I am trying to use automation to split a mail merge Word file. I've searched the groups and found several solutions but they all seem to have a fatal flaw. The creation of the separate files works fine but each file has the trailing section break in it. I've tried doing a MoveUp followed by a Delete. I've tried doing a find and replace on the "^b" character. But they both end up with the formatting being lost. I know that sections contain the header/footer information, page setup, etc but I'd have thought the first section's setup would be stored in the implicit first section and the section break next page would hold the information for the second, empty section. So I am surprised that deleting the second section has any effect on the first section. Does anyone know how to get around this problem? Is there something obvious I'm missing like a 'retain formatting' flag? I've tried grabbling the PageSetup object prior to removing the trailing sction break and then re-applying it again afterwards but that does not work. The only file in which the formatting remains correct is the last one and that is the only one that does not have a trailing section break. Any suggestions gratefully received, Phil N.B. I am writing code in C# and accessing the Word functionality via the Microsoft.Office.Interop.Word wrapper. |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting Problems - light gray paragraph marks appear | Microsoft Word Help | |||
Problems with formatting | Microsoft Word Help | |||
Formatting a word mailmerge with Excel data source | Mailmerge | |||
Form Fields lose bold formatting | Microsoft Word Help | |||
Problems migrating Word 97 mailmerge document to Word 2003 | Mailmerge |