Can't get the header/footer of a rdlc printed on the last page

BeliasBelias Member Posts: 2,998
Hi guys, althought the problems looks quite simple from the subject, this thing is driving me crazy since Yesterday:
i have this report, composed by one list and a bunch of tables in it.
I have to print one of these tables as the last page of the report ("kind of" an attachment), along with his header and footer, that contains some info about the order etc., so what i've done was just put a "page break before" property in the table
The problem is that the header/footer does not print AT ALL at the last page...and with "AT ALL" i mean that it doesn't even print a textbox with some text directly written into it!
What i've already checked:
- printonlastpage property of header/footer (pretty obvious :) )
- visibility property of the elements in the header (there's no rectangle containing the textoboxes as well)
- margins and page size looks good
- i also tried to add a new rectangle below the last table (and within the list) to add another pagebreak at the end of the last table...the result is that my last table prints correctly with header, but then a White page is printed (that is the rectangle i've added plus the ghost header)
Any suggestion? Looks like a bug...i've already done these things a lot of times and it never happened...
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog

Best Answers

  • BeliasBelias Member Posts: 2,998
    Answer ✓
    I just want to note that when i'm talking about header/footer, i'm talking about "REPORT header" and "REPORT footer"...it wasn't that clear after i reread my post, sorry
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeliasBelias Member Posts: 2,998
    Answer ✓
    sorry for the late reply, i've been busy with a go-live...anyway, there's nothing wrong about visibility (actually, there's no visibility set at all, and i want it like this)....as soon i've some time i'll try martinher "solution" (that came in my mind as well, but i didn't have time/budget/willing to do it :) )
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog

Answers

  • BeliasBelias Member Posts: 2,998
    Answer ✓
    I just want to note that when i'm talking about header/footer, i'm talking about "REPORT header" and "REPORT footer"...it wasn't that clear after i reread my post, sorry
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • TiwazTiwaz Member Posts: 98
    I believe that, since it is impossible to set table visibility to last page only and since footer properties are often very unpredictible, it is probably the best for you to do as followed:
    1) Add footer;
    2) Insert Rectangle to footer;
    3) Add whatever you like to rectangle: text boxes, tables etc.
    4) Set Visibility property of rectangle to this expression: =Globals.PageNumber<Globals.TotalPages
    5) Enjoy your data being printed only on last page.
  • martinher562martinher562 Member Posts: 50
    ok, there are something that you can try.

    - Remove the footer and the header, run the report twice. Then add the footer and header and run it twice.
    (You are running twice in order to clear cache).
    - Do a "Save As" and save the report as a new item.
    - Try to recreate the report (not completely, but just add a table and add one field in header and footer).
  • binilabrahambinilabraham Member Posts: 45
    Move all the fields on that table in to the report footer. Then set a common visibility expression for all text boxes like; IIF(Globals!PageNumber=Globals!TotalPages,FALSE,TRUE)
    Software Developer,
    Archerpoint India Pvt. Ltd,Chennai.
  • BeliasBelias Member Posts: 2,998
    Answer ✓
    sorry for the late reply, i've been busy with a go-live...anyway, there's nothing wrong about visibility (actually, there's no visibility set at all, and i want it like this)....as soon i've some time i'll try martinher "solution" (that came in my mind as well, but i didn't have time/budget/willing to do it :) )
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.