Hello. I am new to c# and I am trying to fix an error in my report. I am trying to iterate through my report and search for a tag that matches the tag of the previous page that was viewed. The reason I must approach it this way is because I am adding a parameter that changes the amount of pages per record. I found the following sample code but I do not know how to use the ShowBrick method. The method should be similar to this but I do not fully understand exactly how to translate from the printingsystem level.
printingSystem1.PreviewFormEx.PrintControl.ShowBrick(brick, page); printingSystem1.MarkBrick(brick, page);
private void xrReport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { ((XRLabel)sender).Tag = this.GetCurrentColumnValue("CaseId"); } private void brickcheck_PrintOnPage(object sender, PrintOnPageEventArgs e) { foreach (Page p in this.Pages) { DevExpress.XtraPrinting.Native.NestedBrickIterator iterator = new DevExpress.XtraPrinting.Native.NestedBrickIterator(p.InnerBricks); while (iterator.MoveNext()) { VisualBrick visualBrick = iterator.CurrentBrick as VisualBrick; if (visualBrick != null) { ???? I don't know what goes here ???? } } } }