Hi,
I am having some inconsistencies with formatting when saving as PPT vs PPTX. The issues occur when no formatting has been set. Currently I use all the same code, and only change the file format when saving.
In PPT, text is black, which is what I would expect. In PPTX, text is white.
In PPT, tables cells have black text and a white background, which is what I would expect. In PPTX, table cells are getting a table style applied.
Is there a way I can set up PPTX so that it will have the same default formatting?
I am using Aspose.Slides 15.3.0.0
Thank-you for your time.
IAutoShape shape = _presentation.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 20, 20, 100, 100);
shape.TextFrame.Paragraphs[0].Portions[0].Text = “text without formatting”;
IAutoShape shape2 = _presentation.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 140, 20, 100, 100);
shape2.TextFrame.Paragraphs[0].Portions[0].PortionFormat.FillFormat.FillType = FillType.Solid;
shape2.TextFrame.Paragraphs[0].Portions[0].PortionFormat.FillFormat.SolidFillColor.Color = Color.Red;
shape2.TextFrame.Paragraphs[0].Portions[0].Text = “red text”;
ITable table = _presentation.Slides[0].Shapes.AddTable(20, 140, new double[] {50,50}, new double[] {50,50});
table[0, 0].TextFrame.Paragraphs[0].Portions[0].Text = “0 , 0”;
table[1, 0].TextFrame.Paragraphs[0].Portions[0].Text = “1 , 0”;
table[0, 1].TextFrame.Paragraphs[0].Portions[0].Text = “0 , 1”;
table[1, 1].TextFrame.Paragraphs[0].Portions[0].Text = “1 , 1”;