可以在 Spread 后台事件 PrintSheet 中设置:
- protected void FpSpread1_PrintSheet(object sender, FarPoint.Web.Spread.PrintEventArgs e)
- {
- for (int i = 0; i < this.FpSpread1.Sheets[0].RowCount; i++)
- {
- this.FpSpread1.Sheets[0].Rows[i].Border = new FarPoint.Web.Spread.Border(BorderStyle.Solid, System.Drawing.Color.Red);
- }
- }
复制代码 |