示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_barang rpt = new report_barang();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
 void cetak()
 {
     SqlConnection conn = konn.GetConn();
     {
         conn.Open();
         da = new SqlDataAdapter("select * from tb_barang order by KodeBarang asc", conn);
         ds = new DataSet();
         da.Fill(ds, "tb_barang");
         report_barang myreport = new report_barang();
         myreport.SetDataSource(ds);
         crystalReportViewer_barang.ReportSource = myreport;
         crystalReportViewer_barang.Refresh();
     }
 }