Zum Hauptinhalt gehen

Determine page numbers for expressions

Kommentare

3 Kommentare

  • Berend Veldkamp

    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
  • Franco Di Bari

    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
  • Franco Di Bari

    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 report  

    Best regards

    Franco

    1

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.