回复 4楼epsoft的帖子
这可能是浏览器和Winform程序绘制边框的机制不同造成的。
可以把模板发上来看下吗?
可以通过后台代码设置 Border ,参考代码:
- FarPoint.Web.Spread.CurrencyCellType currcell = new FarPoint.Web.Spread.CurrencyCellType();
- FarPoint.Web.Spread.Border aborder = new FarPoint.Web.Spread.Border();
- FarPoint.Web.Spread.StyleInfo currstyle = new FarPoint.Web.Spread.StyleInfo();
- FpSpread1.Sheets[0].ColumnCount = 7;
- FpSpread1.Sheets[0].RowCount = 50;
- currcell.Size = 20;
- aborder.BorderColorBottom = Color.Blue;
- aborder.BorderColorLeft = Color.Blue;
- aborder.BorderSize = 5;
- aborder.BorderStyleBottom = BorderStyle.Double;
- aborder.BorderStyleLeft = BorderStyle.Double;
- aborder.BorderStyleRight = BorderStyle.Groove;
- aborder.BorderStyleTop = BorderStyle.Groove;
- currstyle.CellType = currcell;
- currstyle.Border = aborder;
- FpSpread1.Sheets[0].SetStyleInfo(-1, 0, currstyle);
复制代码 |