public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { report_transaksipenjualan rpt = new report_transaksipenjualan(); rpt.Site = this.Site; return(rpt); }
void cetak() { SqlConnection conn = konn.GetConn(); { conn.Open(); da = new SqlDataAdapter("select * from vw_cetaktransaksi where NoKwitansi = '" + text_kwitansi + "'", conn); ds = new DataSet(); da.Fill(ds, "vw_cetaktransaksi"); report_transaksipenjualan myreport = new report_transaksipenjualan(); myreport.SetDataSource(ds); crystalReportViewer_transaksipenjualan.ReportSource = myreport; crystalReportViewer_transaksipenjualan.Refresh(); } }