Free Support Forum - aspose.com

Version 2.2.0 - Shapes.AddTable() throws Exception

I updated this morning to version 2.2.0 of the Powerpoint
library. When I make a call to Shapes.AddTable() I receive an
exception using the following code snippet:


Presentation pres = new Presentation(@"C:\empty.ppt");
Slide slide = pres.Slides[0];
Table table = slide.Shapes.AddTable(1*576, 1*576, 4*576, 6*576, 2, 2);

The exception is:

"'-0.6' is not a valid value for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.\r\nParameter name: emSize"

This worked correctly in version 2.1.3 and version 2.1.4.

I have attached my file "empty.ppt" for reference.