Example #1
0
        private void btn_in_Click(object sender, EventArgs e)
        {
            ReportDocument rpt  = new ReportDocument();
            DataTable      dt   = dcore.GetReportHistrory();
            string         path = Application.StartupPath + "\\Reports\\HistoryIN.rpt";

            rpt.Load(path);
            rpt.SetDataSource(dt);
            this.crystalReportViewer1.ReportSource = rpt;
            this.crystalReportViewer1.Refresh();
        }