The problem i had with TOC and pagebreaks is now solved!((filed as 15774) Thanks for that!
But now it does something wrong with the page numbers instead of giving a pagebreak at that point
I will include my doc/images.:
To reproduce it:
Document "6391_(T15_39_20).docx" is the document which is want to use with your DLL so i do:
After this the TOC is changed into "test1.jpg"( see attachment) .
When in Word i select the TOC and press F9 (Update TOC table) then i get an TOC like in "test2.jpg" which is the correct TOC
So most of the pagenumbers from the headers are wrong after your updatefields procedure.
Look also a POINT 5!. There is a empty line (........) which is gone after Word updates the TOC. I think this has an connection with the update for the pagebreaks.
Hope you can produce it.
Let me know if you want to know more...