Hi,
Thanks for the template file.
Please use Cells.InsertRows method instead of InsertRow, you may pick an overloaded version of the method i.e..,
InsertRows(rowIndex, totalRows, updateReference) ---> set "true" for the third parameter.
e.g
//Insert a row at A3 location and update references in other sheets of the book.
theAPWorkbook.Worksheets[0].Cells.InsertRows(2,1, true);
Thank you.
Amjad Sahi
Support Developer,
Aspose Sialkot Team
Contact Us