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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / chetan singh
this problem is related to permission.just note you are
uploading excel file in Inetpub folder and which will not
allow you.So to solve this you need to give access
permission.If you are using XP then give permission to
ASPNET user and for windows 2000/2003 give permission to
Network services.
Is This Answer Correct ? | 2 Yes | 0 No |
What is the difference between ASP.NET Webforms and ASP.NET MVC?
What is X-Path?
How use Xml data in ASP.net?
Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE
What is httpresponse?
What base class do all Web Forms inherit from?
What is the difference between repeater over datalist and datagrid ?
What is the use of HttpHandlers? When to use this?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
What is asp.net localization?
Explain server-side scripting and client-side scripting.
Define page fragment caching?