Quantcast
Channel: Word for Developers forum
Viewing all articles
Browse latest Browse all 4350

Content control fails to export

$
0
0

My Addin code exports some document text using Range.ExportFragment, and then I import it to another document using Range.InsertFile. The range being exported corresponds to a content control. This has been working well with Word 2007 and 2010 and nicely carries along all formatting, pictures, etc.

But now I need to embed smaller content controls within the exported content control and these smaller content controls do not get exported. The file format I am using in ExportFragment is wdFormatXML, although I have tried a few of the other file format options but still no luck. When I examine the exported file I see all the document text but do not see the Title or Tag of the embedded content control. It's not there. How can I export a fragment to file without losing the content control(s) within?


Viewing all articles
Browse latest Browse all 4350

Trending Articles