Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Geeks,
I do have an excel reporting template of which needs to be populated with data from SQL Server, how can i efficiently implement this scenario (Exporting data from SQL Server to a reporting excel template, C#)
Posted

1 solution

This is a simple solution to export Data in excel

C#
ReportDocument rptDoc = new ReportDocument();
...
rptDoc.ExportToHttpResponse(ExportFormatType.Excel, this.Response, false, null);


But it is not clear are you calling report dynamically or not?
 
Share this answer
 
v2

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