473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to get total pages based on grouping and reset in SSRS 2005?

103 100+
I have this code that I used to reset the page numbers based on the grouping value change and it executes as it should.
Expand|Select|Wrap|Line Numbers
  1. Shared offset as Integer
  2. Shared currentgroup as Object
  3.  
  4. Public Function GetGroupPageNumber(group as Object, pagenumber as Integer) as Object
  5.  
  6.   If Not (group =  currentgroup)
  7.               offset = 1
  8.   Else 
  9.   offset = offset + 1
  10.  
  11.   End If
  12.   Return offset
  13.  
  14. End Function
  15.  
However, I need to now calculate the total pages per each group and have no idea how to do this. An examp would be page 1 of three for the first group page footer and page 1 of 2 for the second group because the page rendering will be dynamic based on the amount of information returned for each group. Any ideas or help would be greatly appreciated.
Oct 26 '12 #1
1 4340
Brian Connelly
103 100+
I should mentioned that the function is actually wrote as Public Function GetGroupPageNumber(group as Object) as Object
Oct 26 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i have a gridview of records and i'm trying to display the total pages with 10 records per page. int totalpages; totalpages = 1148 / 10; totalpages = 114; there's actually 115...
0
by: Aswanth | last post by:
I'm Working with SSRS-2005 Reports in C# Web Applications.. I'm having One Doubt regarding Division.. In Chart Control (Pie-Chart Type) (Properties--> Data--> Values--> (Select Edit)-->...
0
by: Aswanth | last post by:
Good Morning.. I'm Using the following Expression for Division in SSRS-2005 in C# Web Applications.. =Round(((Fields!Price.Value*100)/Sum(Fields!CPU.Value, "DataSet1_AmountDetails")),2) & "%" ...
0
by: Aswanth | last post by:
I'm Generating Reports in SSRS-2005.. Previously I got the Data from One Database & Generated Reports.. Now I used to get the Data from Two Different Databases(ie Database-1 & Database-2) & to...
0
by: Aswanth | last post by:
I'm Working with Asp.Net with C#.. & I'm Generating Reports in SSRS-2005.. Till Now I'm Generating Reports in SSRS-2005 with Stored Procedure.. in Which I'm Generating Reports for One...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. ...
0
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Text Log File.. I want to Get this Data from this Log File & to Generate REPORTS in SSRS 2005.. Please...
1
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Microsoft Excel Sheets .. I want to Get this Data from this Microsoft Excel Sheets & to Generate REPORTS in...
0
by: Mahain | last post by:
Hi all, i am working with SSRS 2005 i am using multivalue dropdownlist in my report if have three option in my dropdownlist box for ex "a","b","c" i have one another parameter(suppose...
0
by: RiddleMeThis | last post by:
I'm using SSRS 2005 and have set all of the cell's cangrow and canshrink properties to false so that a header will align properly, but where a cell's contents (without spaces) are larger than the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.