Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_transaksi rpt = new report_transaksi();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        void CetakLaporanTranskasi()
        {
            SqlConnection conn = konn.GetConn();
            {
                conn.Open();
                da = new SqlDataAdapter("SELECT * FROM vw_CetakTransaksi WHERE NoKwitansi = '" + text_kwitansi + "' ", conn);

                //da = new SqlDataAdapter("SELECT * FROM vw_CetakTransaksi  ", conn);

                ds = new DataSet();
                da.Fill(ds, "vw_CetakTransaksi");
                report_transaksi myreport_trns = new report_transaksi();
                myreport_trns.SetDataSource(ds);
                crystalReportViewer1.ReportSource = myreport_trns;
                crystalReportViewer1.Refresh();
                conn.Close();
            }
        }