Error inserting rows
Posted: Wed Jun 17, 2009 11:22 am
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!
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!