当每个spread控件的sheet过多的时候,每个sheet的tab标题显示不全,在不改变spread的长度条件下,我想让所有的sheet的tab标题都显示,不知道如何解决!麻烦解决一下,谢谢!
相关后台代码!
[fly]- [fly] spread.Sheets.Clear();
- spread.Sheets.Count = 0;
- spread.TitleInfo.Visible = true;
- //Spreadd底部按钮
- spread.CommandBar.Visible = false;
- //显示pdf打印功能
- spread.CommandBar.ShowPDFButton = true;
- //Ajax
- spread.EnableAjaxCall = true;
- //实时计算公式
- // fsBudgetWeave.ClientAutoCalculation = true;
- //把sheet选项卡放到spread控件头部
- spread.CommandBarOnBottom = false;
- for (int i = 0; i < 12;i++ )
- {
- string sheetName="月度执行利润表表"+i;
- FarPoint.Web.Spread.SheetView sheet = new FarPoint.Web.Spread.SheetView();
- sheet.SheetName = sheetName;
- sheet.ColumnCount = 5;
- sheet.RowCount = 5;
- spread.Sheets.Add(sheet);
- }
- //显示多少个Tab标签
- spread.Tab.VisibleCount = spread.Sheets.Count;
- //每次滚动多少个
- spread.Tab.ScrollIncrement = 4;[/fly]
复制代码 [/fly] |
|