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”的定义 怎么解决

解决方案 »

  1.   

    没有人知道怎么弄??
    怎么用CONTROLS??
      

  2.   

    你这代码是写在某个类里的吧,this不是个Control
    this.get_Range("A5", "D8");  employeeData = this.Controls.AddChart(25, 110, 200, 150, "employees"); 
    this代表的类不包括Controls?
      

  3.   

    http://topic.csdn.net/u/20080927/12/77423d43-29e7-482d-8cfe-996f18a92edc.html
    后来的同志请转到以上页面  查看问题