Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi There,

I have created a program which will export large data say 10 million rows to excel, text or other formats.
Now I am finding problem with excel export.

I have huge data to be exported in excel. I am using “XML Spreadsheet” where I will construct xml file and write into excel file using stream writer.

Every thing goes fine and exported successfully but when I try to open file it will not show the file. It will show message “problem during loading xls file” and that’s all. I check xls log also which is like that

XML Spreadsheet Warning in Table
REASON: String too long
ACTION: Truncating string
FILE: C:\Users\sunder\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO\FFB7679E.xls
GROUP: Row
TAG: Cell

XML Spreadsheet Warning in Table
REASON: String too long
ACTION: Truncating string
FILE: C:\Users\ sunder \AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO\FFB7679E.xls
GROUP: Row
TAG: Cell

I feel there are no issues with coding. Perhaps may be a cell will not allow more characters or some other issue. May be the data which I am storing in cell is not valid or some other issue.

But here I am restricting a cell should not have more than 1000 characters.

Anyone faced this issue before. I am kind of no brainer now?

Thanks
Posted
Comments
Tim Groven 18-Oct-11 10:53am    
Doesn't .xls files have a limit to how many rows it can support? Can you try creating a .xlsx file?

1 solution

XLS is limited to 65536 rows.

XLSX (Excel 2007+) is limited to 1 million rows.

If you are going for the rows counts you mentioned take a look at Microsoft PowerPivot[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900