public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_transaksipembelian rpt = new report_transaksipembelian();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
 void cetak()
 {
     SqlConnection conn = konn.GetConn();
     {
         conn.Open();
         da = new SqlDataAdapter("select * from vw_cetaktransaksipembelian where NoMasuk = '" + text_nomasuk + "'", conn);
         ds = new DataSet();
         da.Fill(ds, "vw_cetaktransaksipembelian");
         report_transaksipembelian myreport = new report_transaksipembelian();
         myreport.SetDataSource(ds);
         crystalReportViewer_laporanpembelian.ReportSource = myreport;
         crystalReportViewer_laporanpembelian.Refresh();
     }
 }