So I'm attempting to write a big ol' bunch of records I pulled out of an SQL database and sorted to an excel document using C#.
The problem I'm having is it works fine for exactly 207159 rows. Any more than that and it throws up an error, 0x800A03EC
Clearly it's not getting stuck on the old Excel row limit. Clearly it's not getting stuck on the new Excel row limit. I'm completely stumped on this one!
I have somewhere in the region of 350 000 records to write to an Excel document.
The error is occurring during the call to set the value of the range property of the sheet. It won't do it when it is higher than the particular number I am passing to it. Any suggestions?
UPDATE:
I solved this by calling the ToShortDateString() method of DateTime. It didn't like the time element of the DateTime. Strange really as the time was always 00:00:00