public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Transaksi rpt = new Transaksi(); rpt.Site = this.Site; return(rpt); }
private void cetak() { cmd = new SqlCommand("select * from trans where no_kwi = '" + t_id + "'", con.getCon()); da = new SqlDataAdapter(cmd); ds = new DataSet(); da.Fill(ds, "trans"); Transaksi tr = new Transaksi(); tr.SetDataSource(ds); crystalReportViewer1.ReportSource = tr; crystalReportViewer1.Refresh(); }