Add reference microsoftofficeinteropword in c. If you do not see the assemblies you may need to ensure they are installed and displayed. In the templates pane click excel version add in. On the file menu point to new and then click project. On the assemblies page select microsoftofficeinteropword in the component name list and then hold down the ctrl key and select microsoftofficeinteropexcel.
Look at the top of the templates pane to make sure that net framework 4 or a later. Install office primary interop assemblies. Dear readers this c program is all about how to use the properties of word documents and use them accordingly your requirements. I can add a reference to microsoftofficeinteropexcel 11000.
Please notice that for office 2010 we should add microsoft word 140 object library as a reference. With the microsoftofficeinteropword assembly we get the contents and formatting from the document. Microsoft word can be used with c code. In the installed templates pane expand visual basic or visual c expand office and then click the version year of the office product.
Add the microsoftofficeinteropword assembly to your project. The resulting reference appears as microsoftofficeinteropword. For example the pc im typing this on has msvs 2010 c express and office 2010. If you have microsoft office installed then you should be able to add a reference to interopexcel.
First set a reference to the desired version of the microsoft word object library from the com tab of the add reference dialog. To set up an excel add in application.