Hey Aspose Crew,
A few months ago I was researching how to merge multiple source documents into one target document using Aspose.Words.
Using the “InsertDocument” code found on the Aspose forums I could get this to work (see attachment “InsertDocument.txt” which contains VB code).
In my test cases I have one target document containing some text like: “begin <@@replacethis@@> end” and one source document containing some text like: “test text”. I will merge this file 3 (or more) times into the target document, so this output document would contain:
" Begin
test text
test text
test text
End"
This works all correctly, even if I replace the “test text” with a table with one row. That output file would contain:
" Begin
< A three rowed table >
End" (Please see the Attachment “Table test.doc” for the output document.
The problem I have occures when I try to do the same with bullited lists or numeric lists.
When the source documents contain a bullited list or numeric list, the output document does not see this as one list. So the output contains:
"Begin
- Test text
- Test text
- Test text
End"
Instead of
"Begin
- Test text
- Test text
- Test text
End" (Please see the attachment “List test output.doc” for the output document and “List test intput.doc” for the input document.
This is probably because the InsertDocument works with Paragraphs & Section node, but I do not see why the table test should work correctly in that case.
Can you maybe supply a solution for this problem, or a explanation why this does occur with lists but not with table?
I look forward to you reply,
Kind Regards, Sjoerd van Loon
PS; on a related note, is there any indication when the “Update Table of Contents” feature will be released? Because that was also part of my research a few months back and at that time I found a release date “Q2/Q3 2009”. I saw that the “Updateable fields” - feature was already implemented for some part in the latest release notes.