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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        public void putvalues(DataSet dataSetReport)
        {
            DailyHarvestRegister DHarvestReg = new DailyHarvestRegister();

            DHarvestReg.SetDataSource(dataSetReport);
            ReportViewer myReportViewer = new ReportViewer();

            DHarvestReg.SetParameterValue("Company Name", FTSPayRollBL.Company.getCompanyName());
            DHarvestReg.SetParameterValue("Period", cmbMonth.Text + " of " + cmbYear.Text);
            myReportViewer.crystalReportViewer1.ReportSource = DHarvestReg;
            myReportViewer.Show();
        }