예제 #1
0
        public void InitReport()
        {
            // check if report has a reportpage
            bool reportPageExists = false;

            foreach (PageBase page in Report.Pages)
            {
                if (page is ReportPage)
                {
                    reportPageExists = true;
                }
            }

            // if it has not, create the page
            if (!reportPageExists)
            {
                ReportPage reportPage = new ReportPage();
                Report.Pages.Add(reportPage);
                reportPage.CreateUniqueName();
                reportPage.SetDefaults();
            }

            InitPages(1);
            Script = Report.ScriptText;
            UpdateCaption();
            ResetModified();
            FPlugins.Unlock();
        }
예제 #2
0
        public void NewReportPage()
        {
            ReportPage page = new ReportPage();

            Report.Pages.Add(page);
            page.SetDefaults();
            page.CreateUniqueName();
            InitPages(Report.Pages.Count);
            Designer.SetModified(this, "AddPage");
        }