none
Adding rows to PowerPoint table using OpenXML RRS feed

  • Question

  • Hi,

    I am using the following code to add rows to a table in PowerPoint. The table has only 2 columns.

    using openXMLDrawing = DocumentFormat.OpenXml.Drawing;
    ...............

    openXMLDrawing.Table toc = null;
    openXMLDrawing.TableRow tr = null;
    ..........
    toc = sldTOC.Slide.Descendants<openXMLDrawing.Table>().First();

    tr = new openXMLDrawing.TableRow();
    tr.Append(CreateTextCell("Test1"));
    tr.Append(CreateTextCell("Test2"));

    toc.Append(tr);

    "CreateTextCell" method is defined in the following link.

    http://blogs.msdn.com/brian_jones/archive/2009/08/13/adding-repeating-data-to-powerpoint.aspx

    But it is not working. It is corrupting the file. Can anyone please let me know why this is not working?

    Sayan Chatterjee | Senior Consultant | PricewaterhouseCoopers India
    Monday, December 28, 2009 10:34 AM

Answers

  • yes, tc.InnerText is not accessible. actually you should first get the Text element, and you can get it in this order: a:tbl (Table) ->a:tr (TableRow)->a:tc (TableCell)->a:txbody (TextBody)->a:p (Paragraph)->a:r (Run)->a:t (Text). note, paragraph in textbody element could be more than one, same to run and text.

    Here I defined a table with 2X2, and text in each cells are:
    Column1, Column2
    Cell(1,1), Cell(1,2)

    And below are the code to generate such a table:
            // Creates an Table instance and adds its children.
            public Table GenerateTable()
            {
                Table table1 = new Table();
    
                TableProperties tableProperties1 = new TableProperties(){ FirstRow = true, BandRow = true };
                TableStyleId tableStyleId1 = new TableStyleId();
                tableStyleId1.Text = "{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}";
    
                tableProperties1.Append(tableStyleId1);
    
                TableGrid tableGrid1 = new TableGrid();
                GridColumn gridColumn1 = new GridColumn(){ Width = 3048000L };
                GridColumn gridColumn2 = new GridColumn(){ Width = 3048000L };
    
                tableGrid1.Append(gridColumn1);
                tableGrid1.Append(gridColumn2);
    
                TableRow tableRow1 = new TableRow(){ Height = 370840L };
    
                TableCell tableCell1 = new TableCell();
    
                TextBody textBody1 = new TextBody();
                BodyProperties bodyProperties1 = new BodyProperties();
                ListStyle listStyle1 = new ListStyle();
    
                Paragraph paragraph1 = new Paragraph();
    
                Run run1 = new Run();
                RunProperties runProperties1 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text1 = new Text();
                text1.Text = "Column1";
    
                run1.Append(runProperties1);
                run1.Append(text1);
                EndParagraphRunProperties endParagraphRunProperties1 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph1.Append(run1);
                paragraph1.Append(endParagraphRunProperties1);
    
                textBody1.Append(bodyProperties1);
                textBody1.Append(listStyle1);
                textBody1.Append(paragraph1);
                TableCellProperties tableCellProperties1 = new TableCellProperties();
    
                tableCell1.Append(textBody1);
                tableCell1.Append(tableCellProperties1);
    
                TableCell tableCell2 = new TableCell();
    
                TextBody textBody2 = new TextBody();
                BodyProperties bodyProperties2 = new BodyProperties();
                ListStyle listStyle2 = new ListStyle();
    
                Paragraph paragraph2 = new Paragraph();
    
                Run run2 = new Run();
                RunProperties runProperties2 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text2 = new Text();
                text2.Text = "Column2";
    
                run2.Append(runProperties2);
                run2.Append(text2);
                EndParagraphRunProperties endParagraphRunProperties2 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph2.Append(run2);
                paragraph2.Append(endParagraphRunProperties2);
    
                textBody2.Append(bodyProperties2);
                textBody2.Append(listStyle2);
                textBody2.Append(paragraph2);
                TableCellProperties tableCellProperties2 = new TableCellProperties();
    
                tableCell2.Append(textBody2);
                tableCell2.Append(tableCellProperties2);
    
                tableRow1.Append(tableCell1);
                tableRow1.Append(tableCell2);
    
                TableRow tableRow2 = new TableRow(){ Height = 370840L };
    
                TableCell tableCell3 = new TableCell();
    
                TextBody textBody3 = new TextBody();
                BodyProperties bodyProperties3 = new BodyProperties();
                ListStyle listStyle3 = new ListStyle();
    
                Paragraph paragraph3 = new Paragraph();
    
                Run run3 = new Run();
                RunProperties runProperties3 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text3 = new Text();
                text3.Text = "Cell(1,1)";
    
                run3.Append(runProperties3);
                run3.Append(text3);
                EndParagraphRunProperties endParagraphRunProperties3 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph3.Append(run3);
                paragraph3.Append(endParagraphRunProperties3);
    
                textBody3.Append(bodyProperties3);
                textBody3.Append(listStyle3);
                textBody3.Append(paragraph3);
                TableCellProperties tableCellProperties3 = new TableCellProperties();
    
                tableCell3.Append(textBody3);
                tableCell3.Append(tableCellProperties3);
    
                TableCell tableCell4 = new TableCell();
    
                TextBody textBody4 = new TextBody();
                BodyProperties bodyProperties4 = new BodyProperties();
                ListStyle listStyle4 = new ListStyle();
    
                Paragraph paragraph4 = new Paragraph();
    
                Run run4 = new Run();
                RunProperties runProperties4 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text4 = new Text();
                text4.Text = "Cell(1,2)";
    
                run4.Append(runProperties4);
                run4.Append(text4);
                EndParagraphRunProperties endParagraphRunProperties4 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph4.Append(run4);
                paragraph4.Append(endParagraphRunProperties4);
    
                textBody4.Append(bodyProperties4);
                textBody4.Append(listStyle4);
                textBody4.Append(paragraph4);
                TableCellProperties tableCellProperties4 = new TableCellProperties();
    
                tableCell4.Append(textBody4);
                tableCell4.Append(tableCellProperties4);
    
                tableRow2.Append(tableCell3);
                tableRow2.Append(tableCell4);
    
                table1.Append(tableProperties1);
                table1.Append(tableGrid1);
                table1.Append(tableRow1);
                table1.Append(tableRow2);
                return table1;
            }
    
    Tuesday, January 5, 2010 3:42 AM

All replies

  • Hello Sayan,

     

    The codes you post look good to me. Actually, OpenXML SDK just insert xml elements into the file. So to debug the problem why the file gets corrupted, I think we can look into XML file in that file and see what is wrong there.

    Would you mind posting the corresponding table in the XML. You can get it by changing the ppt file to zip and extract its content. 

    Happy New Year to you!

     

     

    Ji Zhou

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Tuesday, December 29, 2009 10:12 AM
    Moderator
  • I create a table in ppt, here is the xml code for the table (2 columns, a row)
                    <a:graphic>
                        <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table">
                            <a:tbl>
                                <a:tblPr firstRow="1" bandRow="1">
                                    <a:tableStyleId>{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}</a:tableStyleId>
                                </a:tblPr>
                                <a:tblGrid>
                                    <a:gridCol w="3048000"/>
                                    <a:gridCol w="3048000"/>
                                </a:tblGrid>
                                <a:tr h="370840">
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>column1</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>column2</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                </a:tr>
                            </a:tbl>
                        </a:graphicData>
                    </a:graphic>
    and here is the code after two rows added:

    <a:graphic>

    <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table">

    <a:tbl>

    <a:tblPr firstRow="1" bandRow="1">

    <a:tableStyleId>{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}</a:tableStyleId>

    </a:tblPr>

    <a:tblGrid>

    <a:gridCol w="3048000"/>

    <a:gridCol w="3048000"/>

    </a:tblGrid>

    <a:tr h="370840">

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>column1</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>column2</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    </a:tr>

    <a:tr h="370840">

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>c11</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>c12</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    </a:tr>

    <a:tr h="370840">

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>c21</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    <a:tc>

    <a:txBody>

    <a:bodyPr/>

    <a:lstStyle/>

    <a:p>

    <a:r>

    <a:rPr lang="en-US" dirty="0" smtClean="0"/>

    <a:t>c22</a:t>

    </a:r>

    <a:endParaRPr lang="en-US" dirty="0"/>

    </a:p>

    </a:txBody>

    <a:tcPr/>

    </a:tc>

    </a:tr>

    </a:tbl>

    </a:graphicData>

    </a:graphic>

                    <a:graphic>
                        <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table">
                            <a:tbl>
                                <a:tblPr firstRow="1" bandRow="1">
                                    <a:tableStyleId>{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}</a:tableStyleId>
                                </a:tblPr>
                                <a:tblGrid>
                                    <a:gridCol w="3048000"/>
                                    <a:gridCol w="3048000"/>
                                </a:tblGrid>
                                <a:tr h="370840">
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>column1</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>column2</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                </a:tr>
                                <a:tr h="370840">
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>c11</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>c12</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                </a:tr>
                                <a:tr h="370840">
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>c21</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                    <a:tc>
                                        <a:txBody>
                                            <a:bodyPr/>
                                            <a:lstStyle/>
                                            <a:p>
                                                <a:r>
                                                    <a:rPr lang="en-US" dirty="0" smtClean="0"/>
                                                    <a:t>c22</a:t>
                                                </a:r>
                                                <a:endParaRPr lang="en-US" dirty="0"/>
                                            </a:p>
                                        </a:txBody>
                                        <a:tcPr/>
                                    </a:tc>
                                </a:tr>
                            </a:tbl>
                        </a:graphicData>
                    </a:graphic>
    



    The only difference is two <a:tr> elemetns added each of them contains two <a:tc>.

    You may use Open XML Diff in Open XML Productivity tool to identify the differnces between two files. The tool is shipped at same time SDK release.
    Wednesday, December 30, 2009 10:20 AM
  • Hi,

    Actually the table that I am using is a formatted table. After looking at the xml (as suggested by you) I found that some xml elements/elements were missing.

    So I tried the follwing code to add a row.

    openXMLDrawing.TableRow tr = null;
    tr = (openXMLDrawing.TableRow)table.Descendants<openXMLDrawing.TableRow>().Last().CloneNode(true);

    table.Append(tr);

    It is appending a copy of the last row at the end of the table properly without corrupting the file. If the last row contains any text, it appears in the new row as well.

    I tried the follwoing command to modify the text in the cells.

    tr = (openXMLDrawing.TableRow)table.Descendants<openXMLDrawing.TableRow>().Last().CloneNode(true);

    foreach (openXMLDrawing.TableCell tc in tr.Descendants<openXMLDrawing.TableCell>())
    {
        tc.InnerText="";                
    }

    table.Append(tr);

    But tc.InnerText throw a compile error " The property or indexer 'DocumentFormat.OpenXml.OpenXmlElement.InnerText' cannot be used in this context because the set accessor is inaccessible".

    I did not find any other way to modify the cell text.

    Also, I did not find any good way to add row without the "CloneNode" method.

    Sayan Chatterjee | Senior Consultant | PricewaterhouseCoopers India
    Wednesday, December 30, 2009 12:01 PM
  • yes, tc.InnerText is not accessible. actually you should first get the Text element, and you can get it in this order: a:tbl (Table) ->a:tr (TableRow)->a:tc (TableCell)->a:txbody (TextBody)->a:p (Paragraph)->a:r (Run)->a:t (Text). note, paragraph in textbody element could be more than one, same to run and text.

    Here I defined a table with 2X2, and text in each cells are:
    Column1, Column2
    Cell(1,1), Cell(1,2)

    And below are the code to generate such a table:
            // Creates an Table instance and adds its children.
            public Table GenerateTable()
            {
                Table table1 = new Table();
    
                TableProperties tableProperties1 = new TableProperties(){ FirstRow = true, BandRow = true };
                TableStyleId tableStyleId1 = new TableStyleId();
                tableStyleId1.Text = "{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}";
    
                tableProperties1.Append(tableStyleId1);
    
                TableGrid tableGrid1 = new TableGrid();
                GridColumn gridColumn1 = new GridColumn(){ Width = 3048000L };
                GridColumn gridColumn2 = new GridColumn(){ Width = 3048000L };
    
                tableGrid1.Append(gridColumn1);
                tableGrid1.Append(gridColumn2);
    
                TableRow tableRow1 = new TableRow(){ Height = 370840L };
    
                TableCell tableCell1 = new TableCell();
    
                TextBody textBody1 = new TextBody();
                BodyProperties bodyProperties1 = new BodyProperties();
                ListStyle listStyle1 = new ListStyle();
    
                Paragraph paragraph1 = new Paragraph();
    
                Run run1 = new Run();
                RunProperties runProperties1 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text1 = new Text();
                text1.Text = "Column1";
    
                run1.Append(runProperties1);
                run1.Append(text1);
                EndParagraphRunProperties endParagraphRunProperties1 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph1.Append(run1);
                paragraph1.Append(endParagraphRunProperties1);
    
                textBody1.Append(bodyProperties1);
                textBody1.Append(listStyle1);
                textBody1.Append(paragraph1);
                TableCellProperties tableCellProperties1 = new TableCellProperties();
    
                tableCell1.Append(textBody1);
                tableCell1.Append(tableCellProperties1);
    
                TableCell tableCell2 = new TableCell();
    
                TextBody textBody2 = new TextBody();
                BodyProperties bodyProperties2 = new BodyProperties();
                ListStyle listStyle2 = new ListStyle();
    
                Paragraph paragraph2 = new Paragraph();
    
                Run run2 = new Run();
                RunProperties runProperties2 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text2 = new Text();
                text2.Text = "Column2";
    
                run2.Append(runProperties2);
                run2.Append(text2);
                EndParagraphRunProperties endParagraphRunProperties2 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph2.Append(run2);
                paragraph2.Append(endParagraphRunProperties2);
    
                textBody2.Append(bodyProperties2);
                textBody2.Append(listStyle2);
                textBody2.Append(paragraph2);
                TableCellProperties tableCellProperties2 = new TableCellProperties();
    
                tableCell2.Append(textBody2);
                tableCell2.Append(tableCellProperties2);
    
                tableRow1.Append(tableCell1);
                tableRow1.Append(tableCell2);
    
                TableRow tableRow2 = new TableRow(){ Height = 370840L };
    
                TableCell tableCell3 = new TableCell();
    
                TextBody textBody3 = new TextBody();
                BodyProperties bodyProperties3 = new BodyProperties();
                ListStyle listStyle3 = new ListStyle();
    
                Paragraph paragraph3 = new Paragraph();
    
                Run run3 = new Run();
                RunProperties runProperties3 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text3 = new Text();
                text3.Text = "Cell(1,1)";
    
                run3.Append(runProperties3);
                run3.Append(text3);
                EndParagraphRunProperties endParagraphRunProperties3 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph3.Append(run3);
                paragraph3.Append(endParagraphRunProperties3);
    
                textBody3.Append(bodyProperties3);
                textBody3.Append(listStyle3);
                textBody3.Append(paragraph3);
                TableCellProperties tableCellProperties3 = new TableCellProperties();
    
                tableCell3.Append(textBody3);
                tableCell3.Append(tableCellProperties3);
    
                TableCell tableCell4 = new TableCell();
    
                TextBody textBody4 = new TextBody();
                BodyProperties bodyProperties4 = new BodyProperties();
                ListStyle listStyle4 = new ListStyle();
    
                Paragraph paragraph4 = new Paragraph();
    
                Run run4 = new Run();
                RunProperties runProperties4 = new RunProperties(){ Language = "en-US", Dirty = false, SmartTagClean = false };
                Text text4 = new Text();
                text4.Text = "Cell(1,2)";
    
                run4.Append(runProperties4);
                run4.Append(text4);
                EndParagraphRunProperties endParagraphRunProperties4 = new EndParagraphRunProperties(){ Language = "en-US", Dirty = false };
    
                paragraph4.Append(run4);
                paragraph4.Append(endParagraphRunProperties4);
    
                textBody4.Append(bodyProperties4);
                textBody4.Append(listStyle4);
                textBody4.Append(paragraph4);
                TableCellProperties tableCellProperties4 = new TableCellProperties();
    
                tableCell4.Append(textBody4);
                tableCell4.Append(tableCellProperties4);
    
                tableRow2.Append(tableCell3);
                tableRow2.Append(tableCell4);
    
                table1.Append(tableProperties1);
                table1.Append(tableGrid1);
                table1.Append(tableRow1);
                table1.Append(tableRow2);
                return table1;
            }
    
    Tuesday, January 5, 2010 3:42 AM
  • To generate a schema valid tbl is not easy. But it's still can be done with Open XML SDK, the code in previous reply demoed that. so taking existing row/cell and call CloneNode() on it is a shortcut.
    Tuesday, January 5, 2010 3:46 AM
  • Thanks a lot Yonggang. Your code helped me a lot. It did the trick!
    Sayan Chatterjee | Senior Consultant | PricewaterhouseCoopers India
    Tuesday, January 5, 2010 10:42 AM
  • Sayan,
    Can you post your solution as i am also looking for a solution to manipulate tables in powerpoint.  i see the code above but i don't full understand how to wire everything together front to back.
    Thursday, March 24, 2011 2:30 PM
  • Hi,

    I'm using following code for updating powerpoint table cell values but still file corrupted when i create.

    Draw.TableRow tr = new Draw.TableRow();
    tr = (Draw.TableRow)tblSingle.Descendants<Draw.TableRow>().Last().CloneNode(true);

     foreach (Draw.TableCell tc in tr.Descendants<Draw.TableCell>())
    {
         Draw.TableCellProperties TableProp = tc.TableCellProperties;
                                            
         Draw.TextBody body = new Draw.TextBody(new Draw.BodyProperties(), new Draw.Paragraph(new Draw.EndParagraphRunProperties() { Language = "en-US", Dirty = false }, new Draw.Run(new Draw.RunProperties() { FontSize = 900, Language = "en-US", Dirty = false, SmartTagClean = false }, new Draw.Text("Test Object Text"))), new Draw.TableCellProperties());
        tc.TextBody = body;
    }
    tblSingle.Append(tr);

    Please help me on corrupting file issues.

    Thanks in advance,

    Nandy

    Monday, February 27, 2012 12:13 PM
  • Hi Sayan,

    What you made code changes for updating table cell values?(powerpoint)

    Thanks in advance,

    Nandy

    Monday, February 27, 2012 12:15 PM