I am using openXML and C# to generate a powerpoint slide but I can’t seem to figure out how to change / set the text size and color. Is this possible and are there any example as I can’t seem to find any with googling?
I am building out a table (similar to this: http://blogs.msdn.com/b/brian_jones/archive/2009/08/13/adding-repeating-data-to-powerpoint.aspx) and I want to change a number of things in each cell (fontsize, font color, backcolor of cell).
Your comments state this Formatting is for a Table inside a PowerPoint slide.
Assumptions
I am assuming you have already created the table, table rows, table cells, and display text.
Also assuming you have everything working and now you want to add formatting.
If you want to format your Text and Cells, you may do so using the following:
I cheated and used the “Open XML SDK 2.0 Productivity Tool for Microsoft Office“.
I simply created a new PowerPoint file, added a table, and edited the 3rd Cell.
Then I ran the SDK tool and reflected the code on “[]/ppt/presentation.xml“.
I added comments to the reflected code so that you may understand it better.