Hello.
I am using Aspose.Cells 4.3 (and .NET 2.0).
I am trying to use latest version of Aspose.Cells (4.4.1 Hotfix), but I have a problem.
The problem is Cells.CopyRow() throws "ArgumentOutOfRangeException".
I checked other versions of Aspose.Cells.
The result is below.
Version Exception
-------------------------------
4.3.0.2 pass
4.4.0.35 pass
4.4.1.3 pass
4.4.1.10 have a problem
4.4.1.13 have a problem
The minimum code is below.
("template.xls" is attached.)
-----------------
Workbook workbook = new Workbook();
workbook.Open("template.xls");
const int ROW_START_INDEX = 7;
const int COPY_COUNT = 3;
Cells cellsSource = workbook.Worksheets["Template"].Cells;
Cells cellsDestination = workbook.Worksheets["Sheet"].Cells;
for (int i = 0; i < COPY_COUNT; ++i)
{
// ArgumentOutOfRangeException here
cellsDestination.CopyRow(cellsSource, ROW_START_INDEX + i, ROW_START_INDEX + i);
}
workbook.Save("result.xls", FileFormatType.Excel2003);
-----------------
Can I get a hotfix?
Thank you.