Click here to Skip to main content
15,896,417 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends,

In my application there is situation to export to excel more than 3 lakhs records. so far I did through below link.

Export DataTable to Excel with Formatting in C#[^]


But it is getting lots of time to export and open that excel file. Please share your thoughts is there any way to do that. It is very urgent for me.

Thanks,
Ram.
Posted
Updated 26-May-14 5:42am
v3
Comments
phil.o 26-May-14 10:07am    
Urgency is only relevant to you, not to us, sorry.
Rember we participate here on our own time ; stating your urgency is considered as rude.
Moreover, here is not a code-ordering site ; no one is going to write a full export library for you.
Finally, don't you think handling that much records in an excel file is the problem per se?
sethupathiram 27-May-14 4:44am    
When you face similar kind of situation like that then you will realize. Untill unless you not aware of that. Dont you try to show diplomaitc answer.
phil.o 27-May-14 4:56am    
Ain't no more deaf than who doesn't want to listen.
Good luck, anyway.

1 solution

try to use string builder
* store each 100 record in the string builder then export the 100 record response object
* flush content after each response write
 
Share this answer
 
Comments
sethupathiram 27-May-14 3:28am    
Yeah i aggree your thoughts. if we do that throught stringbuilder, can we have do format and apply style over excel through our progrming. Please share sample link..

Thanks,
Ram

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