public SubreportView(MonoReports.Model.Controls.SubReport subreport,SubreportRenderer renderer, 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 = renderer; }
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 Control CreateControl() { var subreport = new SubReport(); CopyBasicProperties(subreport); subreport.CanGrow = CanGrow; subreport.CanShrink = CanShrink; subreport.Report = Report; return(subreport); }
public override Control CreateControl() { var subreport = new SubReport(); CopyBasicProperties(subreport); subreport.CanGrow = CanGrow; subreport.CanShrink = CanShrink; subreport.Report = Report; return subreport; }
public override ControlViewBase CreateNewControl(SectionView sectionView) { var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y); var subreport = new SubReport { Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y), Size = new Size(50,20), BackgroundColor = new MonoReports.Model.Color(0.5,0.5,0.5) }; SubreportView subreportView = sectionView.AddControl (subreport) as SubreportView; sectionView.Section.Controls.Add (subreport); subreportView.ParentSection = sectionView; designService.SelectedControl = subreportView; return subreportView; }