Beispiel #1
0
        public BasePager(IReportModel reportModel)
        {
            if (reportModel == null)
            {
                throw new ArgumentNullException("reportModel");
            }

            this.ReportModel = reportModel;
            //this.Layouter = layouter;
            this.Layouter = new Layouter();
            this.Graphics = CreateGraphicObject.FromSize(this.ReportModel.ReportSettings.PageSize);
        }
Beispiel #2
0
 public BasePager(IReportModel reportModel, ILayouter layouter)
 {
     if (reportModel == null)
     {
         throw new ArgumentNullException("reportModel");
     }
     if (layouter == null)
     {
         throw new ArgumentNullException("layouter");
     }
     this.reportModel          = reportModel;
     this.layouter             = layouter;
     this.graphics             = CreateGraphicObject.FromSize(this.reportModel.ReportSettings.PageSize);
     this.exportItemsConverter = new ExportItemsConverter();
 }
Beispiel #3
0
        public BasePager(IReportModel reportModel)
        {
            if (reportModel == null)
            {
                throw new ArgumentNullException("reportModel");
            }

            this.ReportModel = reportModel;

            if (!ServiceContainer.Contains(typeof(ILayouter)))
            {
                ServiceContainer.AddService <ILayouter>(new Layouter());
            }

            this.Graphics = CreateGraphicObject.FromSize(this.ReportModel.ReportSettings.PageSize);
        }