none
XML to Word Document RRS feed

  • Question

  • I starting on a new project and need to convert an XML file into a Word document that is formatted (tables, sections, etc) and wanted to ask what people thought the best (easiest and cleanest) approach would be.

    I'm thinking I will either write a C# app to do it, or use WordML, but wanted to throw the question out there in case someone had a better solution.

    I'm limited to using Office 2003.

    Wednesday, July 22, 2009 7:34 PM

All replies

  • Do you have the Compatibility Pack installed with Office 2003? If so, then I would recommend going with Open XML. What type of xml file are you starting with?
    Zeyad Rajabi (MS)
    Thursday, July 23, 2009 4:30 AM
  • The XML file I'm starting with is special to the project I am working on.

    I've actually made quite a bit of progress working with C# application using automation, but it's been some what painful.

    I'm ignorant. What do you mean when you say Open XML? Is there a link you could send me to?

    Thanks

    Friday, July 31, 2009 9:17 PM
  • I guess you can install Compatibility Pack with Office, then you can save the XML file as OOXML file. Here's the download: http://www.microsoft.com/downloads/details.aspx?FamilyId=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en

    Monday, August 3, 2009 2:21 AM
  • I think FlexDoc does what you want: you create a template (=docx) where you insert 'content-placeholders'. On each content-placeholder you specify the xpath-query that refers to the correct node in your XML-file. FlexDoc will perform the actual merge. Check it out here: http://flexdoc.codeplex.com.

    You can also use Office 2007's own CustomXml-parts, but this doesn't support repeating sections like table-rows, while FlexDoc does.
    Tuesday, August 4, 2009 11:44 AM
  • hi experts,

    if i want xml to word2003 doc,what is best option

    thanks

     


    VenkataP
    Wednesday, May 12, 2010 7:50 AM