NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Integration of netoffice dll's #431

Open Cerv4ntez opened 2 hours ago

Cerv4ntez commented 2 hours ago

Hello i switched my company's software project over from microsofts interop libraries to netoffice and sofar i got everything working. It uses Word and Excel interop functionality to create documents based on templates. In order to create a single standalone binary with no dll's lying around i used MyEvents to redirect the library calls to the dlls i put in the resources file. This works flawlessly for all dlls we use except the netoffice office.dll, which results in a System.MissingMemberException for COMDynamicObject. When i set the office.dll to copyLocal everything works as intended.

PS: I noticed that the changelog for preview 2.0 of netoffice mentions a ComDynamicObject Class, is this related?

jozefizso commented 2 hours ago

Yes, the v2 will not have the code related to dynamic classes for COM. This may help in your use case.

In general, we don't support standalone or self contained binaries.