How to generate a chart in Excel with C #?

xiaoxiao2021-03-06  50

Exc.Charts.Add (Missing, Missing, 1, Missing);

Exc.activechart.Charttype = Excel.xlcharttype.xlcolumnclustered

Exc.activechart.setSourceData ("A1", "B10"), Excel.xlrowCol.xlcolumns);

Exc.activechart.location (Excel.xlchartlocation.xllocationasObject, "Sheet1");

Exc.activechart.haastiti = true;

Exc.activeChart.Charttitle.text = "Chart Name";

Exc.activechart.hasDataTable = false;

转载请注明原文地址:https://www.9cbs.com/read-115826.html

New Post(0)