Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptProduct rpt = new rptProduct();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
 private void frmProductReport_Load(object sender, EventArgs e)
 {
     rptProduct rprod = new rptProduct();
     rprod.Database.Tables[0].ApplyLogOnInfo(log);
     try
     {
         datasetRetailStore ds = new datasetRetailStore();
         ds.Product.Merge(d.dataProduct());
         rprod.Database.Tables[0].SetDataSource(ds);
         crvProductReport.ReportSource = rprod;
     }
     catch (OleDbException ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
Example #3
0
        private void frmProductReport_Load(object sender, EventArgs e)
        {
            rptProduct rprod = new rptProduct();

            rprod.Database.Tables[0].ApplyLogOnInfo(log);
            try
            {
                datasetRetailStore ds = new datasetRetailStore();
                ds.Product.Merge(d.dataProduct());
                rprod.Database.Tables[0].SetDataSource(ds);
                crvProductReport.ReportSource = rprod;
            }
            catch (OleDbException ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
Example #4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rptProduct rpt = new rptProduct();
     rpt.Site = this.Site;
     return rpt;
 }