/// <inheritdoc/> public override void Assign(Base source) { base.Assign(source); SubreportObject src = source as SubreportObject; PrintOnParent = src.PrintOnParent; }
/// <inheritdoc/> public override void Serialize(FRWriter writer) { SubreportObject c = writer.DiffObject as SubreportObject; base.Serialize(writer); writer.WriteRef("ReportPage", ReportPage); if (PrintOnParent != c.PrintOnParent) { writer.WriteBool("PrintOnParent", PrintOnParent); } }
public SubreportObjectMenu(Designer designer) : base(designer) { miPrintOnParent = CreateMenuItem(Res.Get("ComponentMenu,SubreportObject,PrintOnParent"), new EventHandler(miPrintOnParent_Click)); miPrintOnParent.BeginGroup = true; miPrintOnParent.AutoCheckOnClick = true; miHyperlink.Visible = false; miCanGrow.Visible = false; miCanShrink.Visible = false; miGrowToBottom.Visible = false; int insertPos = Items.IndexOf(miGrowToBottom); Items.Insert(insertPos, miPrintOnParent); SubreportObject subreport = Designer.SelectedObjects[0] as SubreportObject; miPrintOnParent.Enabled = !subreport.HasRestriction(Restrictions.DontModify); miPrintOnParent.Checked = subreport.PrintOnParent; }
private void RemoveSubReport(bool delete) { if (reportPage != null) { if (Report != null) { foreach (Base obj in Report.AllObjects) { if (obj is SubreportObject && obj != this) { SubreportObject subReport = obj as SubreportObject; if (subReport.ReportPage == reportPage) { reportPage.Subreport = subReport; reportPage.PageName = subReport.Name; reportPage = null; break; } } } } if (reportPage != null) { if (delete && Report != null) { reportPage.Dispose(); } else { reportPage.Subreport = null; reportPage.PageName = reportPage.Name; } reportPage = null; } } }