用C#做Excel插件时总报错不包含“Application”的定义,是否缺少using指令或程序集引用,求大神告知why!
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSy...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Excel;
using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
using System.Drawing;
using Microsoft.Office.Interop.Excel;
using System.Reflection; 展开
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Excel;
using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
using System.Drawing;
using Microsoft.Office.Interop.Excel;
using System.Reflection; 展开
2016-08-14
展开全部
你先new一个对象
Microsoft.Office.Interop.Excel.Application appapp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Application appapp = new Microsoft.Office.Interop.Excel.Application();
追问
添加了这一句还是同样的错误
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询