FIX: Globals.TotalPages variable returns an incorrect value in a SSRS 2008 R2 report

Article translations Article translations
Article ID: 2620333 - View products that this article applies to.
Expand all | Collapse all

On This Page

Microsoft distributes Microsoft SQL Server 2008 R2 Service Pack 1 (SP1) fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security updates that were included with the previous SQL Server 2008 R2 Service Pack 1 (SP1) update release.

SYMPTOMS

When you use the Globals.TotalPages variable to show the total number of pages in a Microsoft SQL Server 2008 R2 Reporting Services report, the variable might return an incorrect value on the last page of the report.

For example, you use the following expression in the page footer of a report that has 12 pages to show the current page number and the total number of pages:
=Globals.PageNumber & " of " & Globals.TotalPages
In this scenario, the page footer for the last page of the report has the following text for the current page number and for the total number of pages:
12 of 14


RESOLUTION

Cumulative update information

Cumulative update package 3 for SQL Server 2008 R2 SP1

The fix for this issue was first released in cumulative update package 3. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 SP1, click the following article number to view the article in the Microsoft Knowledge Base:
2591748 Cumulative update package 3 for SQL Server 2008 R2 SP1
Note Because the builds are cumulative, each new update release contains all the hotfixes and all the security updates that were included with the previous SQL Server 2008 R2 SP1 update release. We recommend that you consider applying the most recent update release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2567616 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 SP1 was released


MORE INFORMATION

For more information about global collections for Microsoft Visual Studio Report Designer expressions that are used in reports, visit the following MSDN website:

General information about global collections

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 2620333 - Last Review: October 17, 2011 - Revision: 1.0
APPLIES TO
  • Microsoft SQL Server 2008 R2 Reporting Services
  • Microsoft SQL Server 2008 Reporting Services
Keywords: 
kbqfe kbfix kbexpertiseadvanced kbsurveynew KB2620333

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com