none
Inserting the content of a docx file into a content control of another docx file RRS feed

  • Question

  • I want to programmatically  insert the content of a docx file into a content control of another docx file. I can see 2 ways to achieve this operation :

    1- using InsertFile method

    2- using InsertXML method

    What is the best way to do this?

    Regards.

    Wednesday, August 11, 2010 11:06 AM

Answers

  • Hi Tunisian

    I'm going to move this question to the Word Developer forum, as you're more likely to encounter people there who deal with this kind of thing. The VSTO forum concentrates mainly on the VSTO technology, so there are fewer people here who actually work with Word at this level.

    FWIW I don't think there's a "best way". Either way should work. "Best" will differ according to circumstances and your requirements. You should test both scenarios and see which works best for you.


    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Tunisian_BB Tuesday, August 31, 2010 8:41 AM
    Wednesday, August 11, 2010 2:29 PM
    Moderator