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
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Explain the difference between authentication and authorization.
How to change Master page in ASP.Net using code?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
From which base class all web forms are inherited?
What is the appSettings Section in the web.config file?
How does u call and execute a sp in .net?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What are the 3 levels at which content pages can be attached to Master Page?
Contrast OOP and SOA. What are tenets of each ?
What is syntax code to send email from an asp.net application?
Name the tools or API for developing or testing web api?
What is a 307 redirect?
What are uri parameters?