回复 1楼jingyuking的帖子
请尝试以下代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- }
- protected override void OnPreLoad(EventArgs e)
- {
- FpSpread fp = new FpSpread();
- fp.ID = "Fpspread1";
- SheetView sv = new SheetView();
- sv.RowCount = 2;
- sv.ColumnCount = 20;
- sv.AllowPage = false;
- sv.AllowInsert = true;
- sv.AllowDelete = true;
- fp.Sheets.Add(sv);
- fp.Width = Unit.Percentage(100);
- fp.Height = Unit.Pixel(500);
- this.form1.Controls.Add(fp);
- base.OnPreLoad(e);
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
谢谢 |