wangchbs0305 你好,
我使用如下代码保存 Spread 到 Excel 边框正常导出:
- fpSpread1.Sheets[0].AlternatingRows.Count = 2;
- fpSpread1.Sheets[0].AlternatingRows[0].BackColor = Color.White;
- fpSpread1.Sheets[0].AlternatingRows[0].ForeColor = Color.Navy;
- fpSpread1.Sheets[0].AlternatingRows[1].BackColor = Color.LightGreen;
- fpSpread1.Sheets[0].AlternatingRows[1].ForeColor = Color.Navy;
- FarPoint.Win.LineBorder lineBorder = new FarPoint.Win.LineBorder(Color.Yellow,3);
- for (int i = 0; i < 10; i++)
- {
- fpSpread1.Sheets[0].Columns[i].Border = lineBorder;
- }
- this.fpSpread1.SaveExcel(@"E:\test.xls", FarPoint.Excel.ExcelSaveFlags.SaveBothCustomRowAndColumnHeaders |
- FarPoint.Excel.ExcelSaveFlags.SaveAlternatingRowStyles |
- FarPoint.Excel.ExcelSaveFlags.UseCustomPaletteForColorApproximations);
复制代码 效果图(黄色为边框):
png
请问你的边框是怎样设置的,能否发代码片段或 Demo 到论坛上来调试? |