Beispiel #1
0
        // Handle parsing of function in final pass
        override public void FinalPass()
        {
            base.FinalPass();

            // Subreports aren't allowed in PageHeader or PageFooter;
            if (this.InPageHeaderOrFooter())
            {
                OwnerReport.rl.LogError(8, String.Format("The Subreport '{0}' is not allowed in a PageHeader or PageFooter", this.Name == null? "unknown": Name.Nm));
            }

            if (_Parameters != null)
            {
                _Parameters.FinalPass();
            }
            if (_NoRows != null)
            {
                _NoRows.FinalPass();
            }

            _ReportDefn = GetReport(OwnerReport.ParseFolder);
            if (_ReportDefn != null)    // only null in error case (e.g. subreport not found)
            {
                _ReportDefn.Subreport = this;
            }
            return;
        }