找不到Microsoft.Office.Interop.Excel,请帮助我

在我的C#程序中,我尝试使用Wrtie的东西来突出。 我在网上find一个方法,使用Microsoft.Office.Interop.Excel类。 但是当我使用Microsoft.Office.Interop.Excel时,它表示没有findInterop类。 我的项目中已经有Microsoft Office 12.0 Object Library参考

您需要将Microsoft.Office.Interop.Excel.dll添加到您的项目。 请参阅http://msdn.microsoft.com/en-us/library/dd264733.aspx示例