Пример #1
0
 public void RenderTable(BaseReportItem parent, SectionBounds sectionBounds, ReportPageEventArgs rpea, ILayouter layouter)
 {
     this.sectionBounds = sectionBounds;
     this.Parent        = parent;
     this.layouter      = layouter;
     this.Render(rpea);
 }
Пример #2
0
 public static bool IsPageFull(Rectangle rectangle, SectionBounds bounds)
 {
     if (rectangle.Bottom > bounds.PageFooterRectangle.Top)
     {
         return(true);
     }
     return(false);
 }
Пример #3
0
		public SinglePage(SectionBounds sectionBounds, int pageNumber)
		{
			if (sectionBounds == null) {
				throw new ArgumentNullException("sectionBounds");
			}
			if (pageNumber < 0) {
				throw new ArgumentNullException("pageNumber");
			}
			this.sectionBounds = sectionBounds;
			this.PageNumber = pageNumber;
		}
Пример #4
0
 public SinglePage(SectionBounds sectionBounds, int pageNumber)
 {
     if (sectionBounds == null)
     {
         throw new ArgumentNullException("sectionBounds");
     }
     if (pageNumber < 0)
     {
         throw new ArgumentNullException("pageNumber");
     }
     this.sectionBounds = sectionBounds;
     this.PageNumber    = pageNumber;
 }
Пример #5
0
		public static bool IsRoomForFooter(SectionBounds sectionBounds,Point loc)
		{
			Rectangle r =  new Rectangle( sectionBounds.ReportFooterRectangle.Left,
			                             loc.Y,
			                             sectionBounds.ReportFooterRectangle.Width,
			                             sectionBounds.ReportFooterRectangle.Height);
			
			Rectangle s = new Rectangle (sectionBounds.ReportFooterRectangle.Left,
			                             loc.Y,
			                             
			                             sectionBounds.ReportFooterRectangle.Width,
			                             sectionBounds.PageFooterRectangle.Top - loc.Y -1);
			return s.Contains(r);
		}
Пример #6
0
        public static bool IsRoomForFooter(SectionBounds sectionBounds, Point loc)
        {
            Rectangle r = new Rectangle(sectionBounds.ReportFooterRectangle.Left,
                                        loc.Y,
                                        sectionBounds.ReportFooterRectangle.Width,
                                        sectionBounds.ReportFooterRectangle.Height);

            Rectangle s = new Rectangle(sectionBounds.ReportFooterRectangle.Left,
                                        loc.Y,

                                        sectionBounds.ReportFooterRectangle.Width,
                                        sectionBounds.PageFooterRectangle.Top - loc.Y - 1);

            return(s.Contains(r));
        }
Пример #7
0
		public void RenderTable (BaseReportItem parent,SectionBounds sectionBounds,ReportPageEventArgs rpea,ILayouter layouter)
		{
			
			this.sectionBounds = sectionBounds;
			this.Parent = parent;
			this.layouter = layouter;
			this.Render (rpea);
		}
Пример #8
0
		public static bool IsPageFull (Rectangle rectangle,SectionBounds bounds)
		{
			if (rectangle.Bottom > bounds.PageFooterRectangle.Top) {
				return true;
			}
			return false;
		}