public static ExporterCollection ConvertPlainCollection (ReportItemCollection items,Point offset) { if (items == null) { throw new ArgumentNullException("items"); } ExporterCollection col = new ExporterCollection(); if (items.Count > 0) { items.SortByLocation(); foreach(BaseReportItem item in items) { var converteditem = ExportHelper.ConvertLineItem(item,offset); col.Add((BaseExportColumn)converteditem); } } return col; }
public static ExporterCollection ConvertPlainCollection (ReportItemCollection items,Point offset) { if (items == null) { throw new ArgumentNullException("items"); } Console.WriteLine("Convert plain collection"); ExporterCollection col = new ExporterCollection(); if (items.Count > 0) { items.SortByLocation(); foreach(BaseReportItem item in items) { var converteditem = ExportHelper.ConvertLineItem(item,offset); Console.WriteLine("{0} - {1}",converteditem.ToString(),converteditem.StyleDecorator.DisplayRectangle); col.Add((BaseExportColumn)converteditem); } } Console.WriteLine(""); return col; }
public static ExporterCollection ConvertPlainCollection(ReportItemCollection items, Point offset) { if (items == null) { throw new ArgumentNullException("items"); } Console.WriteLine("Convert plain collection"); ExporterCollection col = new ExporterCollection(); if (items.Count > 0) { items.SortByLocation(); foreach (BaseReportItem item in items) { var converteditem = ExportHelper.ConvertLineItem(item, offset); Console.WriteLine("{0} - {1}", converteditem.ToString(), converteditem.StyleDecorator.DisplayRectangle); col.Add((BaseExportColumn)converteditem); } } Console.WriteLine(""); return(col); }