Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_barcode rpt = new report_barcode();

            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_barcode myreport = new report_barcode();
         myreport.SetDataSource(ds);
         crystalReportViewer1.ReportSource = myreport;
         crystalReportViewer1.Refresh();
     }
 }