作者tony80720 (tony)
看板C_Sharp
标题[问题] .Interop.Excel.Trendlines 用法
时间Thu Oct 17 23:43:15 2013
查了很多相关 Microsoft.Office.Interop.Excel
Excel.Series series = (Excel.Series)chartPage.SeriesCollection(1);
//Setting the series to Secondary (y) axis so as to format the same
series.AxisGroup = Excel.XlAxisGroup.xlSecondary;
//Setting the trendline type
Excel.Trendlines trendlines = (Excel.Trendlines)series.Trendlines(System.Type.Missing);
issing);
Excel.Trendline trendline =
trendlines.Add(Microsoft.Office.Interop.Excel.XlTrendlineType.xlLinear, 2,
0, misValue, misValue, misValue, false, false, misValue);
查了很多相关Trendline的用法 都会跑出COMEXCEPTION
请问有人知道怎麽解决吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 106.1.242.102