Пример #1
0
		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;
		}
Пример #2
0
		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;
		}
Пример #3
0
        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);
        }