Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I'm developing a website for work that exports some reports to excel.
I am using the...
C#
Response.AddHeader "Content-Disposition","attachment;filename=file1.xls"
Response.ContentType = "application/vnd.ms-excel"

....strategy to do this. works fine with one sheet.
But how can I generate this excel with multiple sheets with different data?

Plz reply.

Thanks
Posted
Updated 11-Jul-17 20:39pm
v2
Comments
Anuja Pawar Indore 1-Mar-12 2:17am    
Added code block

1 solution

 
Share this answer
 
Comments
thatraja 1-Mar-12 9:58am    
Right, 5!
krishnaMurali 4-Mar-12 23:36pm    
not worked..
my criteria is
2 gridviews are binded with 2 datasets. Thise 2 gridviews should be exprted to two different sheets of Excel.. plz help me

Thanks

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