回复 1楼jack_cf2008的帖子
jack_cf2008 你好,
不好意思,麻烦解释下您的问题,我没读懂。
Spread 保存 excel 代码如下,默认导出所有 Sheet:
- fpSpread1.SaveExcel("filename", FarPoint.Win.Spread.Model.IncludeHeaders.BothCustomOnly);
复制代码
添加 Sheet 代码如下:
- // Create a new sheet.
- FarPoint.Win.Spread.SheetView newsheet = new FarPoint.Win.Spread.SheetView();
- newsheet.SheetName = "North";
- newsheet.ColumnCount = 10;
- newsheet.RowCount = 100;
- // Add the new sheet to the component.
- fpSpread1.Sheets.Add(newsheet);
复制代码 |