It appears to me as an office automation issue try to take help from the codes which are given below:
Code:
object missing = Type.Missing;
Excel.Application myApp= new Microsoft.Office.Interop.Excel.Application();
myApp.Visible = true;
myApp.Workbooks.Add(missing);
Excel.Worksheet ws = (Excel.Worksheet)myApp.ActiveSheet;
Excel.ChartObjects chartobjects = (Excel.ChartObjects)ws.ChartObjects(missing);
Excel.ChartObject chartobject = (Excel.ChartObject)chartobjects.Add(10 /*Left*/, 100 /*Top*/, 600 /*Width*/, 400 /*Height*/);
Excel._Chart chart = (Excel._Chart)chartobject.Chart;
Bookmarks