Determine page numbers for expressions
I would like a logo to be displayed only from the third page onwards. To do this, I would like to determine the current page number as a condition (iif(,,)). I cannot read the page number from the page info.
Does anyone know how to determine the current page number in order to process it further?
Many thanks
-
I haven't tried this, but I think you could use the PrintOnPage event in a custom script, and set the logo's Visible property to false if e.PageIndex is 0 or 1, and true otherwise
0 -
Hello Berend,
thank you for the idea. I will definitely try it that way.
I was hoping for a “simple” variant to select the field in a condition....then I'll give the event a try :)
Thanks again and best regards
Franco
0 -
Hello everyone,
just wanted to write a quick “solution” in case someone has the same problem.
Put the event on the logo with PrintOnPage (scripts)
private void Logo_klein_PrintOnPage(object sender, DevExpress.XtraReports.UI.PrintOnPageEventArgs e) {
//Logo is not displayed on the first page
if (e.PageIndex == 0)
Logo_klein.Visible = false;
else
Logo_klein.Visible = true;
}
Thanks again Berend for the hint with the script in the reportBest regards
Franco
1
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare