We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells.CopyRow() throws ArgumentOutOfRangeException (Aspose.Cells 4.4.1)


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
------------------------------- pass pass pass have a problem have a problem

The minimum code is below.
("template.xls" is attached.)

Workbook workbook = new Workbook();

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.


Thanks for reporting,

We found the issue with CopyRow method and will provide you a fix soon.

Thank you.


We have posted the fix in <A href="</A>.</P> <P>It also fixed this issue.</P>


Thank you for your quick help.
I tested the fix, and I confirmed the problem was fixed.

Thank you.