回复 3楼喀喀坤的帖子
请问你的边框颜色和背景色分别是?
我这边的测试结果是并非边框被覆盖,而是背景色和边框颜色相近不明显,测试代码:
- Private Sub Command1_Click()
- Me.fpSpread1.SaveExcel2007File "E:\\test.xlsx", "", None, ""
-
- End Sub
- Private Sub Form_Load()
- Me.fpSpread1.Row = 2
- Me.fpSpread1.Row2 = 4
- Me.fpSpread1.Col = 2
- Me.fpSpread1.Col2 = 4
-
- Me.fpSpread1.BackColor = RGB(0, 0, 255)
- fpSpread1.SetCellBorder 2, 2, 2, 2, 1, RGB(0, 255, 0), CellBorderStyleSolid
- fpSpread1.SetCellBorder 2, 2, 2, 2, 2, RGB(0, 255, 0), CellBorderStyleSolid
- fpSpread1.SetCellBorder 2, 2, 2, 2, 4, RGB(0, 255, 0), CellBorderStyleSolid
- fpSpread1.SetCellBorder 2, 2, 2, 2, 8, RGB(0, 255, 0), CellBorderStyleSolid
-
- End Sub
复制代码 |