Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_transaksi rpt = new report_transaksi();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
 //8. void cetak
 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_transaksi myreport = new report_transaksi();
         myreport.SetDataSource(ds);
         crystalReportViewer1.ReportSource = myreport;
         crystalReportViewer1.Refresh();
     }
 }