Ejemplo n.º 1
0
 public static Rectangle RenderPlainCollection(BaseReportItem parent,
                                               ReportItemCollection items,
                                               IExpressionEvaluatorFacade evaluator,
                                               Point offset,
                                               ReportPageEventArgs rpea)
 {
     if (items.Count > 0)
     {
         foreach (BaseReportItem child in items)
         {
             child.Parent = parent;
             StandardPrinter.RenderLineItem(child, offset, evaluator, rpea);
         }
     }
     return(new Rectangle(offset, parent.Size));
 }
Ejemplo n.º 2
0
        public static ExporterCollection ConvertPlainCollection(ReportItemCollection items, Point offset)
        {
            if (items == null)
            {
                throw new ArgumentNullException("items");
            }
            ExporterCollection col = new ExporterCollection();

            if (items.Count > 0)
            {
                foreach (BaseReportItem item in items)
                {
                    col.Add(StandardPrinter.ConvertLineItem(item, offset));
                }
            }
            return(col);
        }
Ejemplo n.º 3
0
        public static Rectangle RenderContainer(ISimpleContainer simpleContainer, IExpressionEvaluatorFacade evaluator, Point offset, ReportPageEventArgs rpea)
        {
            BaseReportItem item         = simpleContainer as BaseReportItem;
            Rectangle      retVal       = new Rectangle(offset, item.Size);
            Point          saveLocation = item.Location;

            PrintHelper.AdjustChildLocation(item, offset);

            item.Render(rpea);


            if (simpleContainer.Items != null)
            {
                retVal = StandardPrinter.RenderPlainCollection(item, simpleContainer.Items, evaluator, offset, rpea);
            }

            retVal = new Rectangle(retVal.X, retVal.Y,
                                   retVal.X + item.Size.Width,
                                   item.Size.Height + 3 * GlobalValues.GapBetweenContainer);
            item.Location = saveLocation;
            return(retVal);
        }