public SubreportView(MonoReports.Model.Controls.SubReport subreport, SectionView parentSection) : base(subreport) { this.subreport = subreport; this.ParentSection = parentSection; AbsoluteBound = new Rectangle(parentSection.AbsoluteDrawingStartPoint.X + subreport.Location.X, parentSection.AbsoluteDrawingStartPoint.Y + subreport.Location.Y, subreport.Width, subreport.Height); SubreportRenderer = new SubreportRenderer() { DesignMode = true }; }
public override void Render(Context c) { SubreportRenderer.Render(c, subreport); AbsoluteBound = new Rectangle(ParentSection.AbsoluteDrawingStartPoint.X + subreport.Location.X, ParentSection.AbsoluteDrawingStartPoint.Y + subreport.Location.Y, subreport.Width, subreport.Height); }