为项目添加 COM 组件的引用 Microsoft Excel Object 11.0 Object Library 增加 3 个引用 Excel、Microsoft.Office.Core、VBIDE using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Office.Interop.Excel;Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
Microsoft Excel Object 11.0 Object Library
增加 3 个引用 Excel、Microsoft.Office.Core、VBIDE
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.Office.Interop.Excel;Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
我把您说的也试了,程序运行不起来。也不提示错误。还有什么方法么?
我怀疑是我的配置问题,同样的机器,在.net2003上可以,在.net2005中不行。请指教。
using syttem.Text;
在你的visual studio里将其引用。