private Point ConvertGroupHeader(ExporterCollection exportList, BaseSection section, Point offset) { var retVal = Point.Empty; var rowSize = Size.Empty; ReportItemCollection groupCollection = null; var groupedRows = section.Items.FindGroupHeader(); if (groupedRows.Count == 0) { groupCollection = section.Items.ExtractGroupedColumns(); base.DataNavigator.Fill(groupCollection); base.FireSectionRendering(section); ExporterCollection list = ExportHelper.ConvertPlainCollection(groupCollection, offset); EvaluationHelper.EvaluateRow(base.Evaluator, list); exportList.AddRange(list); retVal = new Point(DefaultLeftPosition, offset.Y + groupCollection[0].Size.Height + 20 + (3 * GlobalValues.GapBetweenContainer)); } else { FillRow(groupedRows[0], base.DataNavigator); rowSize = groupedRows[0].Size; base.FireGroupHeaderRendering(groupedRows[0]); retVal = ConvertStandardRow(exportList, groupedRows[0]); groupedRows[0].Size = rowSize; } return(retVal); }
protected Point ConvertStandardRow(ExporterCollection mylist,ISimpleContainer simpleContainer) { Console.WriteLine("ConvertStandardRow"); var rowSize = simpleContainer.Size; Point curPos = new Point(DefaultLeftPosition, CurrentPosition.Y); ExporterCollection ml = BaseConverter.ConvertItems (simpleContainer, curPos); EvaluationHelper.EvaluateRow(Evaluator,ml); mylist.AddRange(ml); curPos = new Point (DefaultLeftPosition,CurrentPosition.Y + simpleContainer.Size.Height + 2 * GlobalValues.GapBetweenContainer); simpleContainer.Size = rowSize; return curPos; }
protected void AfterConverting (ExporterCollection convertedList) { EvaluationHelper.EvaluateRow(Evaluator,convertedList); }