Microsoft.Office.Tools.Excel.Chart employeeData;
employeeData = this.Controls.AddChart(25, 110, 200, 150, "employees");
employeeData.ChartType = Excel.XlChartType.xl3DPie;// Gets the cells that define the data to be charted.
Excel.Range chartRange = this.get_Range("A5", "D8");
employeeData.SetSourceData(chartRange, missing);把MSDN中的代码执行提示 “TestLib.ExcelOperation”并不包含“Controls”的定义 怎么解决
employeeData = this.Controls.AddChart(25, 110, 200, 150, "employees");
employeeData.ChartType = Excel.XlChartType.xl3DPie;// Gets the cells that define the data to be charted.
Excel.Range chartRange = this.get_Range("A5", "D8");
employeeData.SetSourceData(chartRange, missing);把MSDN中的代码执行提示 “TestLib.ExcelOperation”并不包含“Controls”的定义 怎么解决
怎么用CONTROLS??
this.get_Range("A5", "D8"); employeeData = this.Controls.AddChart(25, 110, 200, 150, "employees");
this代表的类不包括Controls?
后来的同志请转到以上页面 查看问题