wordpress hit counter
Re: [SmartArt] Discrepancy between GUI and shape information stored in 'diagram1.xml' - DrawingML - Formats - OpenXML Developer

Re: [SmartArt] Discrepancy between GUI and shape information stored in 'diagram1.xml'

Formats

Discussions about working with different Open XML Formats

[SmartArt] Discrepancy between GUI and shape information stored in 'diagram1.xml'

  • rated by 0 users
  • This post has 1 Reply |
  • 0 Followers
  • Hi all,

    With the introduction of Office 2007 SP2, SmartArt now has a shape tree description saved (in a file called 'diagram*.xml' along with its normal data. I am using this shape tree to render SmartArt, which works fine except for some seeming discrepancies between what's saved and what the PowerPoint GUI displays.

    An example that illustrates one of the discrepancies is the SmartArt "Trapezoid List". If you create a stock Trapezoid List SmartArt object in the GUI and add text to each of the shapes, the text is oriented horizontally. If you click on the individual shapes, you'll notice that they are rotated.

    Now, if you save this file and look at the shape tree generated for this SmartArt object, you'll notice that the shapes are saved as 'flowChartManualOperation' shapes that are rotated 270 degrees. However, the text for each shape is specified as being horizontally oriented (i.e. the "vert" attribute of 'bodyPr' is set to "horz"), and the text's associated 'txXfrm' tag specifies that the text should also be rotated 270 degrees. If you take this shape description and place it in a normal slide, the text is rendered vertically, from bottom to top, as you'd expect. This does not match what is rendered for the SmartArt.

    I have looked through the data and layout for this SmartArt object (and others that exhibit similar problems), and I haven't seen anything to explain this mismatch. I was wondering if anyone could shed some insight on how to resolve this problem. Did I miss a detail somewhere?

    Thanks for the help!
    fwdev
  • Hi I read with interest your post here. I was wondering if you could elaborate on how you "render" a smartart using the XML file. I need to create an SmartArt Heirarchy Org Chart on a PowerPoint Slide. Looking forward to your response. Thanks Meir
Page 1 of 1 (2 items)