Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptCustomersReport rpt = new rptCustomersReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
 private void btnViewReport_Click(object sender, EventArgs e)
 {
     try
     {
         Cursor         = Cursors.WaitCursor;
         timer1.Enabled = true;
         BusinessManager    BM     = new BusinessManager();
         rptCustomersReport report = new rptCustomersReport();
         report.SetDataSource(BM.BALCustomerReport());
         frmViewCustomerReport vcr = new frmViewCustomerReport();
         vcr.crystalReportViewer1.ReportSource = report;
         vcr.Visible = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }