У меня есть дочерний отчет, для которого я определил событие метода BeforePrint.Однако это не вызывается.У меня также определен метод before print родительского отчета, и он прекрасно вызывается.
Вот пример кода конструктора
// ConcreteTensionReport
this.ConcreteTensionReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail7,
this.GroupHeader6,
this.ConcTen_PerRatingTyp,
this.GroupFooter3});
this.ConcreteTensionReport.Dpi = 100F;
this.ConcreteTensionReport.Level = 1;
this.ConcreteTensionReport.Name = "ConcreteTensionReport";
this.ConcreteTensionReport.Visible = false;
this.ConcreteTensionReport.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.ConcreteTensionReport_BeforePrint);
}
this.ConcTen_PerRatingTyp, являющегося дочерним отчетом.
это на платформе Windows с C # с использованием Visual Studio 2015
, и это код конструктора для дочернего отчета
// ConcTen_PerRatingTyp
//
this.ConcTen_PerRatingTyp.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail8,
this.GroupHeader7,
this.ConcTen_PosOrNeg});
this.ConcTen_PerRatingTyp.Dpi = 100F;
this.ConcTen_PerRatingTyp.Expanded = false;
this.ConcTen_PerRatingTyp.Level = 1;
this.ConcTen_PerRatingTyp.Name = "ConcTen_PerRatingTyp";
this.ConcTen_PerRatingTyp.Visible = false;
this.ConcTen_PerRatingTyp.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.ConcTen_PerRatingTyp_BeforePrint);
...
, который, в свою очередь, имеет дочернего элемента.