Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Word inserting section breaks automatically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Haydn - 09 Sep 2005 16:01 GMT
My application performs the following:

1. Get XML from document.
2. Transform it in some way.
3. Clear document.
4. InsertXML(transformed document) - including some tables.
5. Insert header and footer (using
Sections[1].Headers[wdHeaderFooterFirstPage]).

There are several problems here.

1. After step 4. Word has inserted a section break for me - I never asked
for one.
2. When I save the document as an XML document, the header and footer is not
saved.
3. When I save the document as a Word document (DOC), the header and footer
is saved.
4. When I delete the section break, my header is deleted too.

This is infuriating.  Why does Word insert section breaks for me when I
don't want them?  How do I stop it from doing this?  Why does Word not save
my headers and footers in XML format but will in DOC format?

TIA,

Haydn
Haydn - 09 Sep 2005 17:04 GMT
Wow.  How poor is Word.  After inserting my XML Word clearly shows a
":::::::::::::Section Break (continuous):::::::::::::::::::::::::"
line.

Now, I do a find and pick special and "Section Break" or ^b.  Word does not
find anything in the document.  How can this be?  It clearly shows that there
is a section break there that it put in!!!?!?!?!?!?!?!?

> My application performs the following:
>
[quoted text clipped - 22 lines]
>
> Haydn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.