Page 1 of 1

Error inserting rows

Posted: Wed Jun 17, 2009 11:22 am
by ikosoft
Hello,

I have problem with this sample code:
xls.Read;
xls.Sheet[0].InsertRows(0,1);
xls.Write;
This code gives me an "Access violation" message.

When I use this:
xls.Read;
xls.Sheet[0].InsertRows(1,1);
xls.Write;
This code gives me no problem, but when I open file with Excel, the Excel crashes.

Excel file is empty - created with Excel 2003, version 11.5612.5606.
Can anyone tell me how to insert rows in Excel file.

Thanks in advance!

Re: Error inserting rows

Posted: Tue Aug 18, 2009 9:48 am
by larsa
Hello

I can't reproduce this. Are you using the latest update of the component?

Error inserting rows

Posted: Wed Aug 19, 2009 5:53 am
by ikosoft
The XLSReadWrite version is 4.00.00. But, if the source code is correct, we can try to download the latest vwersion and do the test again.
Can you tell me how to dwonload the lates version for registered users?

Thanks again!
IKOSOFT

Re: Error inserting rows

Posted: Mon Jan 04, 2010 9:13 am
by ikosoft
I try the same thing with version 3. It works. So, I finally didn't find the solution with version 4, but now i have no problems.