public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { report_pelanggan rpt = new report_pelanggan(); rpt.Site = this.Site; return(rpt); }
//5. void cetak void cetak() { SqlConnection conn = konn.GetConn(); { conn.Open(); da = new SqlDataAdapter("select * from tbl_pelanggan order by IdPelanggan asc", conn); ds = new DataSet(); da.Fill(ds, "tbl_barang"); report_pelanggan myreport = new report_pelanggan(); myreport.SetDataSource(ds); crystalReportViewer1.ReportSource = myreport; crystalReportViewer1.Refresh(); } }