Incorrect Total Pages in SSRS (2014) Report for PDF

Abhishek Bhosekar 1 Reputation point
2021-07-07T09:27:14.477+00:00

I am working on Invoice Report(SSRS 2014) which is a huge report consist of multiple sub reports for notes and Terms and conditions. I have used Standard Global Variable to show the page numbers as Globals!PageNumber & " of " & Globals!TotalPages .But, its showing incorrect total pages if the PDF have 9 pages only it will show in the total pages textbox as 10 (1 of 10). In the last page of the PDF shows 9 f 10 pages ,there is no page after the 9th page ,No blank spaces as well. Globals!TotalPages causing the problem. This issue is not coming frequently it is coming for only 2 or 3 invoices among 50. Anyone has any idea to get rid of this issue?

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,793 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,566 Reputation points
    2021-07-08T02:20:52.51+00:00

    Hi @Abhishek Bhosekar ,
    Does the behavior of adding extra page numbers only happen when exporting to PDF format?
    To ensure that the report size is not the cause of the extra page increase, please make sure: (Body Width + Left margin + Right margin) <= (Page width)

    If you have any operations such as grouping or adding page breaks in the report, please let me know.
    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.