We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Having problems with table and z order

I have two tables. I want table 2 to sit behind table 1. When I use plain shapes, 2 goes behind 1. This does not happen with my tables. Is there any way I can get 2 to sit behind 1?

Slide slide1 = _presentation.Slides[0];

Table table1 = slide1.Shapes.AddTable(300, 300, 300, 300, 1, 1);
table1.SetBorders(5, Color.LightSkyBlue);
Table table2 = slide1.Shapes.AddTable(300, 400, 300, 300, 1, 1);
table2.SetBorders(5, Color.DarkViolet);
table2.ZOrder(ZOrderCmd.SendToBack);

Shape shape1 = slide1.Shapes.AddRectangle(1100, 300, 300, 300);
shape1.LineFormat.Width = 5;
shape1.LineFormat.ForeColor = Color.LightSkyBlue;
Shape shape2 = slide1.Shapes.AddRectangle(1100, 400, 300, 300);
shape2.LineFormat.Width = 5;
shape2.LineFormat.ForeColor = Color.DarkViolet;
shape2.ZOrder(ZOrderCmd.SendToBack);

Dear David,

Thanks for considering Aspose.Slides.

I will investigate it and let you know as soon as possible.

Hello,

z-Order for tables does not work in MS-PowerPoint 2003 and Aspose.Slides. But it works in MS-PowerPoint 2007. I will ask technical team if it could provide this feature.