Error inserting rows

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
ikosoft
Posts: 4
Joined: Fri Dec 28, 2007 9:39 am

Error inserting rows

Post 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!
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Error inserting rows

Post by larsa »

Hello

I can't reproduce this. Are you using the latest update of the component?
Lars Arvidsson, Axolot Data
ikosoft
Posts: 4
Joined: Fri Dec 28, 2007 9:39 am

Error inserting rows

Post 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
ikosoft
Posts: 4
Joined: Fri Dec 28, 2007 9:39 am

Re: Error inserting rows

Post 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.
Post Reply