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

            rpt.Site = this.Site;
            return(rpt);
        }
 void cetak()
 {
     SqlConnection conn = konn.GetConn();
     {
         sda = new SqlDataAdapter("select * from tbl_pelanggan order by IdPelanggan asc", conn);
         ds  = new DataSet();
         sda.Fill(ds, "tbl_pelanggan");
         Report_Pelanggan myreport = new Report_Pelanggan();
         myreport.SetDataSource(ds);
         crystalReportViewer1.ReportSource = myreport;
         crystalReportViewer1.Refresh();
     }
 }