none
Insert HTML into Word XML RRS feed

  • Question

  • Hi,

     

    I would like to ask if is it possible to insert HTML string using Open XML into a word XML. The word XML string is from wordDocument.WordOpenXML; which the word document is currently open.

    I would not want to save a temporary file for both the word document and html.

     

    Is this possible?

    Thursday, August 26, 2010 4:20 AM

Answers

  • Hi eliascfc,

    wordDocument.WordOpenXML is a readonly string; which also means that you can't modify/manupulate a currently open document using this.

    You can keep its value in a variable and insert another string (e.g. HTML string) wherever you would like to insert it in the OpenXML string. However, this string is only useful if you save it as a package of multiple XML files, according to the Open XML and Open Packaging specifications.

    HTH,

    Manvir Singh
    http://www.manvirsingh.net/

     

    • Proposed as answer by Ji.ZhouModerator Tuesday, August 31, 2010 9:51 AM
    • Marked as answer by eliascfc Wednesday, September 1, 2010 1:55 AM
    Monday, August 30, 2010 4:53 PM