I have observed the project code shared by you and unfortunately it is not possible to develop the understanding of that as there are many custom things involved in it. However, I have understood the basis requirement of creating the table w.r.t to new API. As shared earlier that in new API the legacy code of old API for PPT will not work. You need to use the sample code w.r.t to new API. Please use the following sample code for your kind reference in this regard and develop an understanding. I hope you can easily port the things w.r.t to this.
public static void addTables()
Presentation pres = new Presentation();
ISlide slide=pres.Slides [0];
//The default slide size has width 720 and height 540
//Now defining rows and columns where the values in arrays define the height and width respectively
//Define columns with widths and rows with heights
double[] dblCols = { 50, 50, 50 };
double[] dblRows = { 50, 30, 30, 30, 30 };
//Add table shape to slide
ITable table1 = slide.Shapes.AddTable(xPos, yPos, dblCols, dblRows);
//Set border format for each cell
foreach (IRow row in table1.Rows)
foreach (ICell cell in row)
cell.BorderTop.FillFormat.FillType = FillType.Solid;
cell.BorderTop.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderTop.Width = 5;
cell.BorderBottom.FillFormat.FillType = FillType.Solid;
cell.BorderBottom.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderBottom.Width = 5;
cell.BorderLeft.FillFormat.FillType = FillType.Solid;
cell.BorderLeft.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderLeft.Width = 5;
cell.BorderRight.FillFormat.FillType = FillType.Solid;
cell.BorderRight.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderRight.Width = 5;
//*Table2 ****************************************Start
float Table2_Position = table1.Y + table1.Height + 50;
//Adding a new table to the slide using specified table parameters
double[] dblCols2 = { 30, 60, 90 };
double[] dblRows2 = { 40, 20, 50, 20, 60 };
//Add table shape to slide
ITable table2 = slide.Shapes.AddTable(xPos, Table2_Position, dblCols2, dblRows2);
//Set border format for each cell
foreach (IRow row in table2.Rows)
foreach (ICell cell in row)
cell.BorderTop.FillFormat.FillType = FillType.Solid;
cell.BorderTop.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderTop.Width = 5;
cell.BorderBottom.FillFormat.FillType = FillType.Solid;
cell.BorderBottom.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderBottom.Width = 5;
cell.BorderLeft.FillFormat.FillType = FillType.Solid;
cell.BorderLeft.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderLeft.Width = 5;
cell.BorderRight.FillFormat.FillType = FillType.Solid;
cell.BorderRight.FillFormat.SolidFillColor.Color = Color.FromArgb(191, 191, 191);
cell.BorderRight.Width = 5;
// Aspose.Slides.Table table2 = slide.Shapes.AddTable(80, Table2_Position, TableWidth, 10, 3, 2, 1, Color.FromArgb(191, 191, 191));
//columns, rows, borderWidth, Color.Black);
pres.Save(“C:\Presentations\TestTable.ppt”, SaveFormat.Ppt);
I hope the shared information will be helpful. Please share, if I may help you further in this regard.