编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误消息: CS0104: “XlBorderWeight”是“Microsoft.Office.Core.XlBorderWeight”和“Microsoft.Office.Interop.Excel.XlBorderWeight”之间的不明确的引用源错误:行 331: public void Bord(int x, int y, int m, int n)
行 332: {
行 333: this._ws.get_Range(this._ws.Cells[x, y], this._ws.Cells[m, n]).BorderAround(XlLineStyle.xlContinuous, XlBorderWeight.xlThick,
行 334: XlColorIndex.xlColorIndexAutomatic, System.Drawing.Color.Black.ToArgb());
行 335: }
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误消息: CS0104: “XlBorderWeight”是“Microsoft.Office.Core.XlBorderWeight”和“Microsoft.Office.Interop.Excel.XlBorderWeight”之间的不明确的引用源错误:行 331: public void Bord(int x, int y, int m, int n)
行 332: {
行 333: this._ws.get_Range(this._ws.Cells[x, y], this._ws.Cells[m, n]).BorderAround(XlLineStyle.xlContinuous, XlBorderWeight.xlThick,
行 334: XlColorIndex.xlColorIndexAutomatic, System.Drawing.Color.Black.ToArgb());
行 335: }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货