drawingml

Word 2007, Open XML - embedding an image

Do you know what basic information MUST include a paragraph (<w:p/>) in document.xml inside a *.docx document, that specifies an image? I do know there must be: <a:blip r:embed="rId4" /> specifing the relationship id, but what else? It's very hard to find it in Google and experimenting with cutting out tags from a ready document or...

Adding Chart to WordprocessingML

I would like to generate an Open XML document containing a Chart using the Open Xml SDK 2. I found an SpreadsheetML example, but I can't work out how to add the chart in a .docx... Is there a good source for documentation/examples for the Open Xml SDK 2? ...

Create custom shape or connector in PowerPoint using code/script/definition

The shapes in in PowerPoint 2007 seem to be built in - is there a way to create 'user'/'custom' shapes? I wanted to create a custom connector, but knowing if you can create a custom shape, could be handy in the future. ...

In PowerPoint 2007, how can I position a Callout's Tail programatically?

I'm looking at the DrawingML of a PowerPoint 2007 file and this is what it has for the Callout object's coordinates and geometry: <p:spPr> <a:xfrm> <a:off x="2819400" y="5181600"/> // X,Y Position of Callout Box <a:ext cx="609600" cy="457200"/> // Width,Height of Callout Box </a:xfrm> <a:prstGeom prst="wedgeR...

Error while trying to insert image in to wordML

Hi, Help needed. I am getting this error {"The xml has invalid content and cannot be constructed as an element.\r\nParameter name: outerXml"} while passing constructed xml in to DocumentFormat.OpenXml.Office.Drawing.Drawing() constructor like this DocumentFormat.OpenXml.Office.Drawing.Drawing d = new DocumentFormat.OpenXml.Office...

Where can I learn more about the PowerPoint 2010 file format?

Where can I find the PowerPoint file format definition, like the header/XML/directory structure? ...

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's...

OpenXML scheme color transformations - applying <a:gamma> and <a:invgamma>

When processing an open xml document, colors can have various transformations applied to a base color to generate a relative color. For instance <a:satMod value="25000"> would modify the base colors saturation by 25%. There are two transforms I have been able to find very little information on and they are: <a:gamma> The docs say "Th...