Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

942


What is a postback url?

873


How do we sort the data from a dataset?

957


What is application in asp net?

916


How can you make sure that web api returns json data only?

979


Can we have multiple web config files for an asp.net application?

976


Explain what is an abstract class?

1014


What is data grid view in asp.net?

954


What is a swagger in web api?

1052


Explain security types in asp.net?

1099


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?

1911


How you will improve web application performance?

1035


What are the versions of garbage collection?

1881


What a diffgram is, and a good use for one?

992


Explain the Order of events in an asp.net page?

1017