I tested out the latest version 2.2.1 for table resizing and row
deletions and it works great for the most part. However, part of
my table building requires portions within a Table Cell to have
different Fonts, Font heights and bullets. Different combinations
of the font and bullet attributes still seem to throw an Exception when
Table.Height property is called. The exception that I
Additional information: '-0.54' is not a valid value for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Presentation pres = new Presentation(@"C:\empty.ppt");
Slide slide = pres.Slides;
Table table = slide.Shapes.AddTable(1*576, 1*576, 4*576, 3*576, 2, 2);
Cell cell = table.GetCell(0,0);
cell.TextFrame.Paragraphs.Portions.Text = "Text 1";
cell.TextFrame.Paragraphs.Portions.FontHeight = 9;
cell.TextFrame.Paragraphs.Portions.Add(new Portion("Text 2"));
cell.TextFrame.Paragraphs.Portions.FontHeight = 8;
// Code throws Exception Here
Console.Out.WriteLine("Table Height: " + table.Height);
With a PowerPoint presentation consisting of a single, empty slide (attached).
Keep up the great work!