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 type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
What is a postback url?
How do we sort the data from a dataset?
What is application in asp net?
How can you make sure that web api returns json data only?
Can we have multiple web config files for an asp.net application?
Explain what is an abstract class?
What is data grid view in asp.net?
What is a swagger in web api?
Explain security types in asp.net?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
How you will improve web application performance?
What are the versions of garbage collection?
What a diffgram is, and a good use for one?
Explain the Order of events in an asp.net page?