#region 网格边线
xlsExcel.BorderStyle = BorderStyle.FixedSingle;
FarPoint.Win.ComplexBorderSide cBorderSide = new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.ThickLine);
FarPoint.Win.ComplexBorder cBorder = new FarPoint.Win.ComplexBorder(cBorderSide, cBorderSide, cBorderSide, cBorderSide);
FarPoint.Win.LineBorder cellLine = new FarPoint.Win.LineBorder(Color.Blue,1);
FarPoint.Win.BevelBorder bordLine = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Blue, Color.Blue,1);
for (int i = 2; i <= 20 + mmm + nnn; i++)
{
for (int j = 0; j <= 17; j++)
{
xlsExcel.ActiveSheet.Cells[i, j].Border = cellLine;
xlsExcel.ActiveSheet.Cells[i, j].Border = bordLine;
xlsExcel.ActiveSheet.Cells[i, j].Border = cBorder;
}
}
#endregion
这是我的代码,但是实现的效果在Excel中打开不存在。
请问高手,该如何处理?
|
|