using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using TradeModel; namespace TradeManage.PrintTemplate { public partial class WarePrint : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string[] wnarr = Request.QueryString["WareNo"].ToString().Trim(',').Split(','); List gwplist = new List(); for (int i = 0; i < wnarr.Length; i++) { GoodWarePrint gwp = new GoodWarePrint(); gwp.WareNo = wnarr[i].ToString(); gwplist.Add(gwp); } CrystalReportSource1.ReportDocument.SetDataSource(gwplist); CrystalReportSource1.DataBind(); } } }