How to add microsoftofficeinteropword in c. You have a microsoft word document doc and want to read it in your c program. Satyabrat singh becsc web developer livetek solution dont forget to click mark as answer on the post that helped you. On the assemblies page select microsoftofficeinteropword in the component name list and then hold down the ctrl key and select microsoftofficeinteropexcel. In the installed templates pane expand visual basic or visual c expand office and then click the version year of the office product.
Using word microsoftofficeinteropword. If u have any query fill free to reply. In the templates pane click excel version add in. On the com tab select microsoft word 140 object library or whatever version you have installed on your system.
The word part means you can use word as an alias for the namespace. To set up an excel add in application. These are the top rated real world c csharp examples of microsoftofficeinteropwordapplication extracted from open source projects. Add the following using statement to make working with the word namespace easier.
Microsoft word can be used with c code. On the file menu point to new and then click project. With the microsoftofficeinteropword assembly we get the contents and formatting from the document. Dotnet add package microsoftofficeinteropword version 15047971003 packagereference includemicrosoftofficeinteropword version15047971003 for projects that support packagereference copy this xml node into the project file to reference the package.
You can rate examples to help us improve the quality of examples. Look at the top of the templates pane to make sure that net framework 4 or a later.