回复 3楼莫一兮的帖子
我不是老师,互相学习;
- Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- If IsPostBack Then
- Return
- End If
- Me.FpSpread1.Sheets(0).ColumnHeader.Cells(0, 0).Text = "测试"
- End Sub
- Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Me.FpSpread1.SaveExcel(Me.Server.MapPath("1.xls"), FarPoint.Excel.ExcelSaveFlags.SaveBothCustomRowAndColumnHeaders)
- End Sub
复制代码 |