The Document object is a member of the Documents collection. The Documents collection contains all the Document objects that are currently open in Microsoft Word. UseDocuments(index) where index is the document name or index number to return a single Document object. Microsoft Word can be used with C# code. You have a Microsoft Word document (.doc) and want to read it in your C# program. With the Microsoft.Office.Interop.Word assembly, we get the contents and formatting from the document. They said it's impossible to using Microsoft.Office.Interop.Word w/t MS Office installed.
I am trying to integrate Microsoft Word with C#. But when i am trying to add Assembly 'Microsoft.Office.Interop.Word' I couldn't find this in the reference list:
What am I missing? I'm using Visual Studio Ultimate 2012.
Please help...
user261710user261710
2 Answers
To add a reference to a primary interop assembly:
Open your Visual Studio Tools for Office project and select the project name in Solution Explorer.
On the Project menu, click Add Reference.
On the .NET tab, select the primary interop assembly you want in the Component Name list. For more information about the available Microsoft Office primary interop assemblies, see Office primary interop assemblies.
Click OK.
The assembly name appears in the References folder of Solution Explorer.