Thanks,
But I need use Excel because the Excel page is for my clients.
My code is this:
libro.Charts.Add(opc, opc, opc, opc);
rangos = hoja1.get_Range("A" + fila.ToString(), "C" + (fila +
6).ToString());
//libro.ActiveChart.ChartWizard(rangos, Excel.XlChartType.xlColumnClustered,
opc, Excel.XlRowCol.xlColumns, opc, opc, opc, "historial", opc, opc, "");
libro.ActiveChart.Location(Excel.XlChartLocation.xlLocationAsObject,
"Detalles");
rangos = hoja1.get_Range("I420", "I424");//coge los valores que hay ese
rango en la hoja de c lculo
libro.ActiveChart.SetSourceData(rangos, Excel.XlChartType.xl3DArea);
libro.ActiveChart.Legend.Delete();
libro.ActiveChart.ChartType = Excel.XlChartType.xlBarClustered;
//libro.ActiveChart.PlotBy = Excel.XlRowCol.xlRows;
//libro.ActiveChart.SizeWithWindow = Excel.XlSizeRepresents.xlSizeIsArea;
libro.ActiveChart.SizeWithWindow = true;
//proteger el grafico
libro.ActiveChart.ProtectData = true;
libro.ActiveChart.ProtectFormatting = true;
libro.ActiveChart.ProtectGoalSeek = true;