Using the Microsoft.Office.Interop.Word Assembly

I need to do a text document programming in C #. Is there a way to access the assembly of Microsoft.Office.Interop.Word without installing the word Microsoft? I tried installing Office Primary Interop Assemblies, but first asked to install the Microsoft Office suite.

+4
source share
3 answers

Have you tried distributing PIA for any version of Office you are trying to work on?

The PIA distributed in Office 2010, for example, does not indicate Office as a requirement (but, of course, it could be an error in the System Requirements section).

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=938fe8ad-583b-4bd7-a345-23250dc15855#SystemRequirements

+2
source

maybe it's too late to answer ... but for those who are looking for the same solution, the Open XML SDK is a library released by Microsoft and used to work with office documents (doc, xls, ppt, ...)

0
source

As Dr. TJ says, you can use the Open XML SDK . We used Word.Interop, but sometimes it stopped, and Microsoft does not recommend using it as a document formatting on the server side, so the Open XML SDK makes it easy to create text documents in DOCX and Open XML formats. This allows you to cope well with scalability, confidence (files, if damaged, can be restored), as well as other very subtle characteristics.

0
source

All Articles