var list = new string[3] { "spread1", "spread2", "spread3" };
for (int i = 0; i < list.Length; i++)
{
var spread1 = new FarPoint.Web.Spread.FpSpread();
spread.Open(Server.MapPath("template_1.xml"));
spread.ActiveSheetView.Cells[0, 0].Value = list;
form1.Controls.Add(spread1);
var spread2 = new FarPoint.Web.Spread.FpSpread();
spread.Open(Server.MapPath("template.xml"));
spread.ActiveSheetView.Cells[0, 0].Value = list;
form1.Controls.Add(spread2);
}
以上代码每次循环动态的生成了两个spread,共生成了6个spread 2个spread的为一组在前台画面拼成一个spread
问题:点击保存按钮后 如何取得每一组的spread的数据?sprea1为明细数据 sprea2 为合计数据
|