请问你的网格线是怎么设置的?
以下是两种网格线的设置方法,请参考:
1.网格线类型为 Raised- FarPoint.Win.Spread.GridLine HGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Raised, Color.Black);
- FarPoint.Win.Spread.GridLine VGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Raised, Color.Black);
- fpSpread1.Sheets[0].HorizontalGridLine = HGridLine;
- fpSpread1.Sheets[0].VerticalGridLine = VGridLine;
- this.fpSpread1.SaveExcel(@"E:\test.xls", FarPoint.Excel.ExcelSaveFlags.SaveBothCustomRowAndColumnHeaders);
复制代码 效果图:
png
2.网格线类型为 none- FarPoint.Win.Spread.GridLine HGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None, Color.Black);
- FarPoint.Win.Spread.GridLine VGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.None, Color.Black);
- fpSpread1.Sheets[0].HorizontalGridLine = HGridLine;
- fpSpread1.Sheets[0].VerticalGridLine = VGridLine;
- this.fpSpread1.SaveExcel(@"E:\test.xls", FarPoint.Excel.ExcelSaveFlags.SaveBothCustomRowAndColumnHeaders);
复制代码 效果图:
png
|