public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_keuangan rpt = new report_keuangan();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 void cetak()
 {
     SqlConnection conn = konn.GetConn();
     {
         conn.Open();
         da = new SqlDataAdapter("select * from tb_akun", conn);
         ds = new DataSet();
         da.Fill(ds, "tb_akun");
         report_keuangan myreport = new report_keuangan();
         myreport.SetDataSource(ds);
         crystalReportViewer1.ReportSource = myreport;
         crystalReportViewer1.Refresh();
     }
 }