Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Report_Barang rpt = new Report_Barang();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 void cetak()
 {
     SqlConnection conn = konn.GetConn();
     {
         conn.Open();
         sda = new SqlDataAdapter("select * from tbl_barang order by KodeBarang asc", conn);
         ds  = new DataSet();
         sda.Fill(ds, "tbl_barang");
         Report_Barang myreport = new Report_Barang();
         myreport.SetDataSource(ds);
         crystalReportViewer1.ReportSource = myreport;
         crystalReportViewer1.Refresh();
     }
 }