c# - Using Office.Interop.Excel on machines where MS Office isn't installed -
i have application uses microsoft.office.interop.excel, when deploy on machines there isn't version of ms office following error
i tried installing vstor indicated in answer com object clsid {00024500-0000-0000-c000-000000000046} either not valid or not registered didn't solve issue.
if need work open xml documents (*.xslx) may consider using open xml sdk. see welcome open xml sdk 2.5 office more information.
in case of binary file format need use third-party components don't required office/excel installed on machine.
pay special attention following fact:
microsoft not recommend, , not support, automation of microsoft office applications unattended, non-interactive client application or component (including asp, asp.net, dcom, , nt services), because office may exhibit unstable behavior and/or deadlock when office run in environment.
if building solution runs in server-side context, should try use components have been made safe unattended execution. or, should try find alternatives allow @ least part of code run client-side. if use office application server-side solution, application lack many of necessary capabilities run successfully. additionally, taking risks stability of overall solution.
read more in considerations server-side automation of office article.
Comments
Post a Comment