Hi Kelley,
Thank you for posting your query to us.
We have improved the performance in our latest versions.
Here is the sample that we have used to test this issue,
http://www.syncfusion.com/development/uploads/CS_56f78a2b.zipIt just takes less than 1 min. Please upgrade to our new Candidate release version 6.2.0.32 from the below forum thread.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=72816When more styles are added, it is recommended to use global styles within BeginUpdate and EndUpdate calls. Use of IMigrant Range will reduce the considerable memory usage, when large amount of strings are used.
Here are some code snippets that improve performance.
[C#]
IStyle bodyStyle = workbook.Styles.Add("BodyStyle");
bodyStyle.BeginUpdate();
//Add custom colors to the palette.
workbook.SetPaletteColor(9,Color.FromArgb(239,243,247));
bodyStyle.Color = Color.FromArgb(239,243,247);
bodyStyle.Borders[ExcelBordersIndex.EdgeLeft].LineStyle = ExcelLineStyle.Thin;
bodyStyle.Borders[ExcelBordersIndex.EdgeRight].LineStyle = ExcelLineStyle.Thin;
bodyStyle.EndUpdate();
//Sets style for the whole column
sheet.SetDefaultColumnStyle(1,colCount,bodyStyle);
If still the issue exists, could you please try reproducing it in the above sample and send us the modified sample, so that we could sort out the cause of the issue and provide you a solution?
Please let me know if you have any other questions.
Best Regards,
Bhuvana