xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Bold = False
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Italic = False
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Size = 11
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Color = "#RRGGBB"(其中"#RRGGBB"是指颜色的RGB值,比如纯黑就是"#000000")
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Italic = False
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Size = 11
xlsheet.ActiveSheet.Cells[ row, i + 1 ].Font.Color = "#RRGGBB"(其中"#RRGGBB"是指颜色的RGB值,比如纯黑就是"#000000")
/////////////////////////////////////
“object”并不包含对“Font”的定义
/////////////////////////////////////而且vs.net的智能感知也得不到xlsheet.ActiveSheet.Cells[ row, i + 1 ]的Font属性,但是奇怪的是xlsheet.ActiveSheet.Cells却有Font属性:)
[email protected]
谢谢
xlsheet.ActiveSheet.Cells[ row, i + 1 ] = xxx[i].ToString();
接口 OWC.IWebCalc 的 QueryInterface 失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.InvalidCastException: 接口 OWC.IWebCalc 的 QueryInterface 失败。
邮箱是[email protected]
http://expert.csdn.net/Expert/topic/1454/1454452.xml?temp=.4643824
[email protected]