I tried to generate a PPTX using Aspose Slides 5.9. The PPTX (Attached as AsposeTest4 was well formed. I tried to open the PPTX file in MS Powerpoint 2003. But I got an error as "There was an error in accessing file". But the same file when opened in MS Powerpoint 2010, it opened correctly without errors.
Further I changed the Height of the table alone from the table formation code as int tableHeight = 596; I got the PPTX (OutputFileName: AsposeTest3) that opened well without errors in both Powerpoint 2003 and 2010. Also I could see that the height of the table appeared to be same as that of the table height 196 used in the earlier case
Can you look in this with high priority asap?
Please find the code snippet.
Aspose.Slides.License license = new Aspose.Slides.License();<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
PresentationEx newPptx = new PresentationEx();
SlideEx newSlide = newPptx.Slides;
int tableWidth = 637;
int tableHeight = 196; //Opens in both 2010 only. Shows error in 2003
//int tableHeight = 596; //Opens file in both 2003, 2010
double columnWidths = new double;
for (int i = 0; i < columnWidths.Length; i++)
columnWidths[i] = (double)(tableWidth / 8) / 8;
double rowHeights = new double;
for (int i = 0; i < rowHeights.Length; i++)
rowHeights[i] = (double)(tableHeight / 7) / 8;
int tableIndex = newSlide.Shapes.AddTable(20,30,columnWidths,rowHeights);
TableEx table = (TableEx)newSlide.Shapes[tableIndex];
this.Response.ContentType = "application/pptx";
this.Response.AppendHeader("Content-Disposition", "attachment; filename =PPT with Response.pptx");
Stream st = this.Response.OutputStream;
Let me know if you require any other information.Thanks.