Hi Priya,
Thanks for your interest in Aspose.Slides.
I have tried to reproduce the problem as specified by you but unfortunately unable to do so. Can you please share your code snippet that is causing performance issue? For your reference, please verify the code snippet that I have used and it does not create any significant performance issues.
//Instantiate a Presentation object that represents a PPT file<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
string ST = GetTimestamp(DateTime.Now);//Setting start time
Presentation pres = new Presentation();
//Setting table parameters
int xPosition = 880;
int yPosition = 1400;
int tableWidth = 4000;
int tableHeight = 500;
int columns = 10;//Please change this value to 5 when testing for 50 cells per slide
int rows = 10;
double borderWidth = 2;
int SlidesToGenerate = 2;//Please change this value to 1 when testing for 100 cells slode
//and to 2 when testing for 50, 50 cells 2 slides
try
{
//Accessing the text frame of the first cell of the first row in the table
Slide slide;
Aspose.Slides.Table table;
for (int slid_count = 1; slid_count <= SlidesToGenerate; slid_count++)
{
slide = null;
slide = pres.AddEmptySlide();
table = null;
table = slide.Shapes.AddTable(xPosition, yPosition, tableWidth, tableHeight,
columns, rows, borderWidth, Color.Blue);
table.AlternativeText = "myTable " + slid_count;
for (int row = 0; row < rows; row++)
{
for (int col = 0; col < columns; col++)
{
TextFrame tf = table.GetCell(col, row).TextFrame;
if (tf != null)
{
tf.Paragraphs[0].Portions[0].Text = "This is row: "+row+" col: "+col;
}
}
}
}
//Writing the presentation as a PPT file
pres.Write("D:\\modified.ppt");
string ST2 = GetTimestamp(DateTime.Now);//End time
long Difference = Convert.ToInt64(ST2) - Convert.ToInt64(ST);
Console.WriteLine(Difference);
Thanks and Regards,