找回密码
 立即注册

QQ登录

只需一步,快速开始

cqtk

银牌会员

42

主题

79

帖子

2895

积分

银牌会员

积分
2895

活字格认证

cqtk
银牌会员   /  发表于:2013-12-3 15:46  /   查看:4714  /  回复:1
1.怎么等效的将这句代码转换到 ASP.NET中
this._activeSheetView.AddColumnHeaderSpanCell(0, 1, 2, 1);//WinForm代码
2.在ASP.net中是否有 与下面一句代码相等效的方法?
this._activeSheetView.AddRangeGroup(i + 4, groupCount, false);//WinForm代码

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2013-12-3 16:30:00
沙发
回复 1楼cqtk的帖子

1.ASP.NET 中合并代码如下:

  1. FpSpread1.Sheets[0].ColumnCount = 8;

  2. FpSpread1.Sheets[0].RowCount = 8;

  3. // Set the number or rows and columns in the headers.

  4. FpSpread1.Sheets[0].ColumnHeader.RowCount = 3;

  5. FpSpread1.Sheets[0].RowHeader.ColumnCount = 2;





  6. // Span the header cells as needed.

  7. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(0, 0, 1, 8);

  8. FpSpread1.Sheets[0].RowHeaderSpanModel.Add(0,0,12,1);





  9. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(1, 0, 1, 2);

  10. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(1, 2, 1, 2);

  11. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(1, 4, 1, 2);

  12. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(1, 6, 1, 2);

  13. FpSpread1.Sheets[0].ColumnHeaderSpanModel.Add(1, 8, 1, 2);





  14. // Set the labels as needed --

  15. // using the Label property or the cell Text property.

  16. FpSpread1.Sheets[0].ColumnHeader.Cells[0, 0].Text = "Fiscal Year 2005";

  17. FpSpread1.Sheets[0].RowHeader.Cells[0, 0].Text = "Branch #";






  18. FpSpread1.Sheets[0].ColumnHeader.Cells[1, 0].Text = "1st Quarter";

  19. FpSpread1.Sheets[0].ColumnHeader.Cells[1, 2].Text = "2nd Quarter";

  20. FpSpread1.Sheets[0].ColumnHeader.Cells[1, 4].Text = "3rd Quarter";

  21. FpSpread1.Sheets[0].ColumnHeader.Cells[1, 6].Text = "4th Quarter";





  22. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 0].Text = "East";

  23. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 1].Text = "West";

  24. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 2].Text = "East";

  25. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 3].Text = "West";

  26. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 4].Text = "East";

  27. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 5].Text = "West";

  28. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 6].Text = "East";

  29. FpSpread1.Sheets[0].ColumnHeader.Cells[2, 7].Text = "West";


复制代码


2.Spread ASP.NET 当前还无法实现这个功能。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部