Since I haven't had any luck going the document builder route, I've decided to try and use the AltChunk method. Currently, I use the method as described in this link:
http://blogs.msdn.com/b/brian_jones/archive/2008/12/08/the-easy-way-to-assemble-multiple-word-documents.aspx
This is working excellent for most content controls that are sdtblocks within a document. If I try to use this method on a content control within a paragraph or between two runs of text (e.g. SdtRun), I cannot insert the AltChunk without it corrupting the document. What method exists to insert an AltChunk into a content control that is embedded within a paragraph?
Hi,
The altChunk technique does not work when inserting content at a run-level. It can only be used to insert content at the block-level. It inserts paragraphs and tables, but can't insert runs. This limitation is the same limitation as with DocumentBuilder.
If you want to insert run-level content, you would need to programmatically do it yourself.
Why do you want to insert run-level content using DocumentBuilder or altChunk? Does this content that you want to insert contain rich formatting, including images and the like? Or is it just formatted text? If it is just formatted text, it is easy enough to move the content over. It isn't trivial, but it isn't hard. If, however, you need to move rich content including images, smart art, and the like, then it is a much more complicated issue.
In any case, if you are programmatically inserting run-level content, you need to take a different approach from DocumentBuilder or altChunk.
-Eric
Eric White www.ericwhite.com Follow on Twitter
i am trying to do exactly what is in the guide i have multiple documents that have many ole objects and i need to copy these items to a single document!
stupid stupid word forces using stdrun instead of block !!!