void CheckForPageBreak(BaseSection section, ExporterCollection exporterCollection) { var pageBreakRect = PrintHelper.CalculatePageBreakRectangle((BaseReportItem)section.Items[0], base.CurrentPosition); if (PrintHelper.IsPageFull(pageBreakRect, base.SectionBounds)) { base.CurrentPosition = ForcePageBreak(exporterCollection, section); } }
void CheckForPageBreak(BaseSection section, ISimpleContainer container, ISimpleContainer headerRow, ExporterCollection exporterCollection) { var pageBreakRect = PrintHelper.CalculatePageBreakRectangle((BaseReportItem)container, base.CurrentPosition); if (PrintHelper.IsPageFull(pageBreakRect, base.SectionBounds)) { base.CurrentPosition = ForcePageBreak(exporterCollection, section); base.CurrentPosition = ConvertStandardRow(exporterCollection, headerRow); } }