相关疑难解决方法(0)

Excel Range.BorderAround(),边框始终为黑色

这是我正在使用的代码:

rngData.BorderAround(Excel.XlLineStyle.xlContinuous,
        Microsoft.Office.Interop.Excel.XlBorderWeight.xlThin,
        Microsoft.Office.Interop.Excel.XlColorIndex.xlColorIndexNone,
        System.Drawing.ColorTranslator.ToOle(System.Drawing.Color.FromArgb(178, 178, 178)));
Run Code Online (Sandbox Code Playgroud)

无论我提供什么RGB值,边框颜色始终为黑色.

c# export-to-excel

21
推荐指数
3
解决办法
7万
查看次数

标签 统计

c# ×1

export-to-excel ×1