locked
Unable to get Page number in all page in RDLC file RRS feed

  • Question

  • User-515898492 posted

    Hi,

       i got error message when i tried to give print preview or download as PDF file. i am using page number in header and footer part of the RDLC. suppose the over all page count is less than 4 am able to download pdf and get print preview . if the page count increasemore than 4  i receive following information 

    an error occurred during local report processing unable to read beyond end of the stream

    i am using golbal constant in RDLC. 

    please give me any suggestion.

    Thanks&Regards,

    Arunabathan.G

    Friday, July 6, 2012 2:05 PM

All replies

  • User-8475372 posted

    Put a text box in the footer/header section and mention like this in the expression area of that text box. 

    ="Page " + Globals!PageNumber.ToString() + " of " + Globals!TotalPages.ToString()

    Tuesday, July 10, 2012 2:09 AM
  • User-515898492 posted

    Hi,

          i tried your code. but i am not able to print  and cant view(preview).

    Please refer below error image

    Report Error

    Thanks&Regards,

    Arunabathan.G

    Friday, July 13, 2012 2:30 AM