Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            cr_guard_large_img rpt = new cr_guard_large_img();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void frm_officer_large_img_report_Load(object sender, EventArgs e)
        {
            base.WindowState = FormWindowState.Maximized;
            cr_guard_large_img     report                 = new cr_guard_large_img();
            ParameterFields        paramFields            = new ParameterFields();
            ParameterField         parameterField         = new ParameterField();
            ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();

            foreach (Table tbCurrent in report.Database.Tables)
            {
                Set_Report_logons.SetTableLogin(tbCurrent);
            }
            report.SetDataSource(sg_Reports.SELECT_GUARD_LARGE_IMAGE_RPT("", SystemConst.guard_number));
            report.SetParameterValue("QueryName", "SELECT_GUARD_LARGE_IMAGE_RPT");
            report.SetParameterValue("guard_number", SystemConst.guard_number);

            this.cr_large_image_report.ParameterFieldInfo = paramFields;
            this.cr_large_image_report.ReportSource       = report;
        }