Nope it's not working :(
My code is below
------------------------------------------------
if (ds.Tables[0].Rows.Count > 0)
{
Slide emailPerformanceSlide = pres.CloneSlide(slide, pres.Slides.Count + 1);
// set title, find the Alt text in the slide
Rectangle rectTitle = (Rectangle)emailPerformanceSlide.FindShape("Title");
TextFrame txtFrameTitle = rectTitle.TextFrame;
txtFrameTitle.Text = "eDM Performance";
//Setting table parameters
int xPosition = 200;
int yPosition = 900;
int tableWidth = 5000;
int tableHeight = 500;
int columns = 9;
int rows = 1;
double borderWidth = 1;
//Adding a new table to the slide
Table table = emailPerformanceSlide.Shapes.AddTable(xPosition, yPosition, tableWidth,
tableHeight, columns, rows, borderWidth, System.Drawing.Color.Black);
table.AlternativeText = "EmailTable";
// set header here
.........................
foreach(DataRow dr in ds.Tables[0].Rows)
{
table.AddRow();
// set row data here
.........................
}
table.AddRow();
// total row here
.........................
//Setting second table parameters
xPosition = 1000;
yPosition = table.Height + table.Y + 200;
tableWidth = 3500;
tableHeight = 15;
columns = 4;
rows = 2;
borderWidth = 1;
//Adding a new table to the slide
Table tableUndelivered = emailPerformanceSlide.Shapes.AddTable(xPosition, yPosition, tableWidth,
tableHeight, columns, rows, borderWidth, System.Drawing.Color.Black);
tableUndelivered.AlternativeText = "UndeliveredTable";
tableUndelivered.SetRowHeight(0, 15);
// set second table header and row here
.........................
}