Пример #1
0
        public void CreateGraphicsFromPageSize()
        {
            reportCreator.BuildExportList();
            var      page = reportCreator.Pages[0];
            Graphics g    = CreateGraphics.FromSize(page.Size);

            Assert.That(g, Is.Not.Null);
        }
Пример #2
0
        public void GraphicsIsSameSizeAsPage()
        {
            reportCreator.BuildExportList();
            var page     = reportCreator.Pages[0];
            var graphics = CreateGraphics.FromSize(page.Size);

            Assert.That(graphics.VisibleClipBounds.Width, Is.EqualTo(page.Size.Width));
            Assert.That(graphics.VisibleClipBounds.Height, Is.EqualTo(page.Size.Height));
        }
 public BasePageBuilder(IReportModel reportModel)
 {
     if (reportModel == null)
     {
         throw new ArgumentNullException("reportModel");
     }
     ReportModel = reportModel;
     Pages       = new Collection <ExportPage>();
     Graphics    = CreateGraphics.FromSize(reportModel.ReportSettings.PageSize);
 }