我的版本是4.0.3506.2008. 代码如下:
'加裁EXCEL
Dim strFile As String = "test.xls"
strFile = Server.MapPath(strFile)
FpSpread1.OpenExcel(strFile)
'表格样式
FpSpread1.BorderStyle = BorderStyle.None '边线
FpSpread1.CommandBar.Visible = False '命令行
With FpSpread1.ActiveSheetView
.GridLines = GridLines.None '网格线不要
.ColumnHeader.Visible = False '列头
.RowHeader.Visible = False '行头
.AllowPage = False
end with |