Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all,

I am in trouble.

Can any one tell me how I export my Gridview data into Excel File.
Please send a specific Code I tried but it shows error like
Error	1	

The type or namespace name 'ExcInterop' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

and then I use Namespace
using Excel = Microsoft.Office.Interop.Excel;
It shows error. What should I do know I also install DLL reg but its not working...

Thanks & Regards
Mohit

[edit]Subject, Tags, Capitalization, code blocks, minor English, urgency removed. It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response - OriginalGriff[/edit]
[edit2]...And then I disanbled "Ignore HTML..." option. I must check the preview. I must check the preview. I must check the preview... - OriginalGriff[/edit2]
Posted
Updated 2-Apr-11 3:59am
v4
Comments
Sandeep Mewara 2-Apr-11 3:45am    
please send a specific Code
:doh:

Edit and update with small code snippet here. Further, did you tried to Google? It's a very comment requirement to export gridview data to Excel file... lots of articles and blogs..

+ I am sure, lots of links for the error too that you get.
Mohit3 2-Apr-11 3:53am    
thanks but sir iam not understand which namespace is used for Excel,how i registered Excel Dll in my Toolbox that all excel coding file are coming in my Project.

using assembly reference

please send a specific Code in you problem.
 
Share this answer
 
Take a look there-CPArticle[^] to learn how to export Grdiview data to Excel.
 
Share this answer
 
Comments
Dalek Dave 2-Apr-11 9:59am    
Good Link
Google is an amazing tool: a quick search using the new subject for your question "Export GridView data to Excel" gave 1,490,000 hits. Including this one, right at the top: Export GridView to Excel Complete Code![^]

The whole first page of the search was different ways to achieve it with full source code...

Use Google. It can save you a lot of time and effort.
 
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