How do I get the location of an XRControl like a label in Devexpress Reporting?

86 Views Asked by At

How do I get the location of an XRControl like a label in Devexpress Reporting so that I can detect two labels are not on the same page

I tried using the BeforePrint event but there the location is not set.

1

There are 1 best solutions below

2
PeterS On

Hello please try AfterPrint

   XRLabel label= new XRLabel();
   label.AfterPrint += (s, e) =>
   {
       var currentLocation = ((XRLabel)s).LocationF;
   };