I have developed a web application in asp.net 2.0 with
Access as back end i am trying to gereate report/export
data in excel. After hosting the site i am not getting any
error or such exported excel file. but using the source
code from my system it works fine.
Could any one tell me why it is happening and what is its
solution.
Answer Posted / shrikant
Could you please let me know what error you are facing?
The most possible error while exporting data thru asp.net
is COM exception.
Use reflection to achieve this, whenever we use Microsoft
com component line MS-Excel we do code for any particular
version instead use generalize way for handling excel or
any other MS component.
Please refer:
http://www.codeproject.com/KB/cs/Simple_Excel_Automation.asp
x
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?
ThreadID=49886
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are session objects?
Why session management is required?
What is a gridview in asp.net?
Why we go for mvc instead of asp.net? : Asp.Net MVC
What is the difference between session and application?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
Where viewstate value is stored in asp.net?
Define xmlvalidatingreader class.
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Where you store Connection string in "Web.Config" file in ASP.NET?
How does asp.net work?
How does cookies work in asp net?
Define cookie.
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
Can we make activex dll also ti execute in some process as that of client ? How can we do?