Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Automating Netoffice

$
0
0
Yes, I know MS does not like this nor supports it but...I would like to do so.

In user mode my code works fine, but when running as a windows service the following line of code returns null. How determine the error that causing it to return as null?

Word.Document newDocument = wordApplication.Documents.Open(tempFile);

I am hoping to load up a document and use this to convert it to text for downstream parsing. But this returns null. No exception. And I cannot find any errors in the event log.

[Update] I put the debug console on and it says "Failed to Resolve Assembly" but I have noticed that in the user mode and it does not seem to stop it.

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>