none
Simple drawings in Word - VML or SmartArt or any other option? RRS feed

  • Question

  • I am trying to create a word document with simple diagrams programmatically and wondering what are the different methods of inserting shapes in a document.

    One option is the VML way, but the format per se is deprecated. But VML format allows me to just insert a rectangle very simply. 

    The other option is to insert SmartArt. But the downside is that you need to create drawing.xml, data.xml, layout.xml, colors.xml and quickStyle.xml.

    Is there a simpler way?

    Thanks

    Monday, October 8, 2012 12:50 PM

All replies

  • Hi Abhiram

    Your problem description sounds like you need to use WordOpenXML (and the Open XML SDK)?

    Which version of Word?


    Cindy Meister, VSTO/Word MVP, my blog

    Monday, October 8, 2012 2:22 PM
    Moderator
  • Hi Cindy

    I am using Microsoft Office 2007. I am using an xml library to generate the docx. So, is there an alternate to these approaches?

    Thanks


    Wednesday, October 10, 2012 8:16 AM
  • You didn't really answer my first question. I asked whether you needed to work with the Office Open XML file format.

    This forum targets the Word APIs, not the XML file formats. I'm trying to determine where your question should be.


    Cindy Meister, VSTO/Word MVP, my blog

    Wednesday, October 10, 2012 9:09 AM
    Moderator