I am creating an application which requires a namespace inclusion of Microsoft.Office.Interop.Excel. But when I write the following code I cannot find the 'office' option in the list. using Microsoft.'office': this option is not present
Add a reference to the Microsoft.Office.Interop.Excel
assembly.
add reference
Sounds like you're missing the Primary Interop Assemblies. PIA's get installed with Office if you choose a Complete installation or specify them during the installation process. You can also download the PIA's you need from Microsoft.
See Also
http://msdn.microsoft.com/en-us/library/15s06t57(v=vs.100).aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.