我对Spread进行以下设置后进行导出操作,可以正常导出边框:
- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.ActiveSheet.Cells[0, 0, 30, 30].Border = new FarPoint.Win.LineBorder(Color.Black, 1);
- fpSpread1.BorderCollapse = FarPoint.Win.Spread.BorderCollapse.Collapse;
- fpSpread1.SaveExcel("test.xls");
- }
复制代码 |