Error InsertAndCopyRows


  Hi,

  I have a report using TFlexCelReport, it works fine, but I have a customer that is having problem just after   Report.Run;

 The application is showing this error message: Invalid Arguments to call InsertAndCopyRows.

This reports works fine, but for some reason it fails with an specific situation.

I am using FlexCel 3.4 ( I can upgrade to 3.5 but the only change was the XE2 support )

I am using Delphi XE and Win 7

Any ideas about this issue?

Thanks in advance.

hi,

Are you using runtime packages?  One reason I can think for this to happen is that it is loading the wrong runtime package in your customer.

If this isn't it, I guess it might be that the report is generating more than 65536 rows?  If that is the case, you should get an error (I am not sure if it is that one, but it might be), because an xls file can't have more than 65536 rows.

Could it be that? 

Hi Gallero,

You are right, my report has 81400 rows, and it is raising this exception.  I will split it in two files and wait for FlexCel 5.0.

Thanks.