internal virtual void ReportQueryPage(object sender, QueryPageSettingsEventArgs qpea)
        {
            qpea.PageSettings.Margins = new Margins(reportSettings.LeftMargin, reportSettings.RightMargin, reportSettings.TopMargin, reportSettings.BottomMargin);
            bool firstPage;

            if (this.currentPageNumber == 0)
            {
                firstPage = true;
            }
            else
            {
                firstPage = false;
            }
            this.currentPageNumber++;
            ISinglePage sp = new SinglePage(new SectionBounds(reportSettings, firstPage), 0);

            PrintHelper.InitPage(sp, this.reportSettings);
            sp.PageNumber             = this.currentPageNumber;
            reportDocument.SinglePage = sp;
        }
		internal virtual void ReportQueryPage (object sender,QueryPageSettingsEventArgs qpea) 
		{
			qpea.PageSettings.Margins = new Margins(reportSettings.LeftMargin,reportSettings.RightMargin,reportSettings.TopMargin,reportSettings.BottomMargin);
			bool firstPage;
			if (this.currentPageNumber == 0) {
				firstPage = true;
			} else {
				firstPage = false;
			}
			this.currentPageNumber ++;
			ISinglePage sp  = new SinglePage(new SectionBounds (reportSettings,firstPage),0);	
			PrintHelper.InitPage(sp,this.reportSettings);
			sp.PageNumber = this.currentPageNumber;
			reportDocument.SinglePage = sp;
		}