Very strange error when writing Excel97 file

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
mdonath
Posts: 23
Joined: Fri Oct 05, 2012 11:36 am

Very strange error when writing Excel97 file

Post by mdonath »

That seems to be absolutely strange:

Code: Select all

	try
	{
		int Lines = 25;
		XLSReadWriteII51->Version = xvExcel97;
		TDateTime dt(TDateTime::CurrentDate());
		for(int i=0; i<Lines; i++)
			XLSReadWriteII51->Sheets[0]->AsDateTime[0][i] = dt + double(i+1)/96.;
		XLSReadWriteII51->Filename = L"test01.xls";
		XLSReadWriteII51->Write();
	}
	catch(Exception& e)
	{
		Application->ShowException(&e);
	}

When executing this I get an error:

'Error on writing record #22
Access violation at address....

I lines is up to 24, there is no problem. If format is Excel2007 there is no problem too.

Markus
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Very strange error when writing Excel97 file

Post by larsa »

Hello

This is fixed in update 5.10.06
Lars Arvidsson, Axolot Data
Post Reply