Hi,
Thanks for your posting and using Aspose.Cells.
We have fixed a similar issue recently. Please download and try the latest fix: Aspose.Cells
for .NET v8.5.2.4. It should fix your issue. Let us know your feedback.
Thanks for your reply, Shakeel.
As stated, the company I’m working for has a licence valid only for releases up to 26 Sep 2014, which I believe means the most recent available to me is v8.2.1. If my workaround is the only option I have, that’s fine, but if you have any other advice it would be gratefully received.
Hi,
Thanks for your posting and using Aspose.Cells.
Could you please try the latest version: Aspose.Cells
for .NET v8.5.2.4 without setting license. It will help us see if your issue is occurring because of some bug or because of some error in your code. We will look into it and help you asap.
Hi Shakeel,
Hi,
Thanks for your posting and using Aspose.Cells.
Please try the following code with your older and newer version. I have tested this code with the newer version. It basically inserts even number of rows i.e 1000 and it generates correct output excel file which is not corrupt. I have also attached the output excel file generated by the code for your reference.
C#
Workbook workbook = new Workbook(“before.xlsx”);
var cells = workbook.Worksheets[“Results_Detail”].Cells;
var rowNum = 11;
var totalRows = 1000; //even number of rows
cells.InsertRows(rowNum, totalRows);
workbook.Save(“output.xlsx”);
Hi Shakeel,
Hi,
Thanks for your posting and using Aspose.Cells.
I have tested this issue with your code with the latest version, older versions and was not able to replicate this issue. I have attached the sample console application that uses 8.2.1.1 which is just next to 8.2.1.0 used by you and it also did not replicate this issue.
Please download the attached console application and run at your end and also check what version number it prints in the console. Let us know your feedback.
Please also provide us runnable sample application that replicates your issue with your older version for our further investigation.