Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello to every one i have problem with reporting in ASP.net !
i want to get export from Databse (aql server 2008) to excel 2010 !how i can ?

(ofcours my data in gridview [how i can change connection string for grid to my server connectin string ] )
Posted
Updated 7-Jul-12 23:48pm
v2
Comments
[no name] 8-Jul-12 5:50am    
Nat at all clear. Title says reporting, then you say exporting from database and finally ask about connection strings. Try to figure out what it is that you are trying to do first.

It would appear that the main problem that you are having is that you think that you have to have a connection string for your grid control.

Your questions is not clear.


I assume you want to export the data in gridview( which is fetched from database) to excel.

Then please try this article.
Export DataTable to Excel with Formatting in C#[^]


You mentioned something about changing connection string. can you be bit more clear??
 
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