Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Report_Transaksi rpt = new Report_Transaksi();

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