Help with PresetGeometry output to docx

Home Forums WordprocessingML Help with PresetGeometry output to docx

This topic contains 1 reply, has 1 voice, and was last updated by  Howard Rubin 8 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3574

    Howard Rubin
    Participant

    How can I create objects of DocumentFormat.OpenXml.Drawing.PresetGeometry in a Microsoft Word docx file? These are shapes such as lines, arrows, and polygons.

    What I need
    It would be very helpful to have an example similar to the ones provided for Images and Tables

    What I tried
    Searching for docx and PresetGeometry didn’t find any helpful links, so I used the “Open XML SDK 2.5 Productivity Tool for Microsoft Office” to compare an empty docx to one with an arrow. The code generated by the View Part Code button for /word/document.xml compiles but Word reports a schema error when I run that code and open the generated file.

    Howard Rubin

    • This topic was modified 8 years, 3 months ago by  Howard Rubin.
    • This topic was modified 8 years, 3 months ago by  Howard Rubin.
    • This topic was modified 8 years, 3 months ago by  Howard Rubin.
    • This topic was modified 8 years, 3 months ago by  Howard Rubin.
    #3583

    Howard Rubin
    Participant

    I tried the “Open XML SDK 2.5 Productivity Tool for Microsoft Office” again to compare an empty docx to one with an arrow, and it works now. There’s lots of C# code in there that might not be needed so a minimum example would still be helpful, but I’m able to move forward now.

    Howard Rubin

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.