public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { formpenjualaneceran rpt = new formpenjualaneceran(); rpt.Site = this.Site; return(rpt); }
private void crysreportpenjualaneceran_Load(object sender, EventArgs e) { string id = FormPenjRetail.id; MyDataSet ds = new MyDataSet(); db_Form_Penjualan_EceranTableAdapter d = new db_Form_Penjualan_EceranTableAdapter(); db_BarangTableAdapter b = new db_BarangTableAdapter(); db_Detail_Form_Penjualan_EceranTableAdapter dt = new db_Detail_Form_Penjualan_EceranTableAdapter(); d.FillById(ds.db_Form_Penjualan_Eceran, id); b.FillByIdeceran(ds.db_Barang, id); dt.FillByid(ds.db_Detail_Form_Penjualan_Eceran, id); ReportClass rc = new formpenjualaneceran(); rc.SetDataSource(ds); this.crystalReportViewer1.ReportSource = rc; this.crystalReportViewer1.ToolPanelView = ToolPanelViewType.None; }