回复 1楼wangwuliSpread的帖子
可以尝试以下代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- FpSpread1.ActiveSheetView.ColumnCount = 100;
- FpSpread1.ActiveSheetView.RowCount = 30;
- FpSpread1.ActiveSheetView.AllowPage = false;
- FpSpread1.ClientAutoSize = true;
- FpSpread1.ActiveSheetView.Columns[0, 25].Width = 15;
- FpSpread1.ActiveSheetView.Columns[26, FpSpread1.ActiveSheetView.ColumnCount-1].Width = 30;
- }
复制代码
示例程序:
Spread_14415.zip
(12.12 KB, 下载次数: 224)
|