office interop - c# - Exporting data from externally hosted app and DB -


i'm building web app in c# needs facility export data. had exported excel when testing locally , worked fine, app hosted on external server believe won't work due microsoft.office.interop.excel, correct?

you're right in microsoft discourages excel automation in web applications:

https://support.microsoft.com/en-us/kb/257757?wa=wsignin1.0

you still have options, though. if need export data, can still write file in csv format export, , should open in excel. if need write in excel formats, can use open xml sdk office (https://msdn.microsoft.com/en-us/library/office/bb448854.aspx?f=255&mspperror=-2147217396).

one other option save data , have server run excel automation in batch process outside of iis , send report user.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -