private void Print_Inventory_Load(object sender, EventArgs e) { var inventory = new PrintInventory(); inventory.SetDataSource(ds); crystalReportViewer1.ReportSource = inventory; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PrintInventory rpt = new PrintInventory(); rpt.Site = this.Site; return rpt; }