Display footer once in a multiple-page in SSRS - reporting-services

I am customising a SSRS report in MS report builder 2014.
Current Condition
In this report, the body displays invoice info per customer ID, which may varies from 1 to multiple pages. e.g. the customer TEST001, there are 100 invoice line from INVC10001.... to INVC10100 with coresponding amount info, which is pirnted in 3 pages.
The report will start a new page for each customer ID.
The Remittance info (contains variable data and dynamic data) in the footer currently displays on every single page of the report. Take TEST001 as example, the payment bank info will be printed 3 pages under TEST001.
New Requirement
for those customer ID report lasting more than 1 pages, how can I display the remittance info on last page of the footer only under that customer ID(e.g. only print the bank info on page 3)?

Place this code in the Hidden property for any objects you only want to show on the final page.
=iif(Globals!PageNumber=Globals!TotalPages,false,true)

Related

SSRS2008: Show Row Count of SubReport in Main Report

Using SSRS 2008
Have Main Report with text and 3 hidden subreports embedded in the main report. There are three SubReports (Current, Expired and Missing) which provide detail information for the report (Parameter) you select in the main report. These work properly.
What I want to do is add a table to the Main report that displays a row count of the products displayed in the subreport.
For Instance:
Current
Product#1 Location CountofCurrent#1
Product#2 Location CountofCurrent#2
Expired
Product#1 Location CountofExpired#1
Product#2 Location CountofExpired#2
etc
I have been trying:
[Reports]![YourReportName]![YourSubReportName]!CountRows([TheValueFromTheSubReportYouWantToReference])
in different variations without success.
How do you reach from the main report and count the rows in the subreport?
Thanks in advance.

SSRS rows in tablix outside group goes to next page

I have a SSRS report that looks like the following:
Report Header:
Page X of Total Page Y (based on change of Customer ID)
Customer ID (Referring to ReportItem!CustomerID)
Report Body:
A tablix page break by change of group Customer ID
Tablix Header: Date | Price | Quantities | Description | Hidden Column Customer ID
Tablix Details: YYYY-MM-DD | 1.00 | 500 | Blah Blah | Customer ID (used for page header referring)
Row outside group: Empty
Row outside Group: Sum of Price
Row outside Group: Sum of Quantities
Row outside group: Empty
Row outside group: *** END OF RECORDS ***
Report Footer:
Company address
Occasionally, the Row outside group will go to next page if the report body for the tablix details are full, which causing in the next page, only some of the rows outside group will be displayed (e.g. * END OF RECORDS *).
Then, in the report header, the Customer ID field cannot get the value of ReportItem!CustomerID which leave it blank.
Is there anyway to solve the blank issue? Or make the row outside group must attach to the tablix details in the same page? For some reason, I cannot limit the number of rows display per page. Thanks.
Maybe you can try throwing in another hidden copy of the final "Customer ID" somewhere on the "END OF RECORDS" group row and then use an IIF to call that one if the original hidden "Customer ID" you have isn't present on the final page.
You can control when the page breaks occur and keep the elements together, but it's not very intuitive. First, don't use actual Headers and Footers. Just use textboxes that will appear at the beginning and end of each Customer's data. Second, you need to wrap everything in a grouped rectangle. This will be grouped by customer with page breaks set to happen between instances.
See my answer here for more details on how to do this.
If I was going to display "Body" object values in the report header, I would create a hidden expression text object somewhere in the "Body" that uses a Code call ( Report Properties, Code ) to put the value into a shared variable. Then, that gives you a set variable, get variable, type of situation. The variable is updated as the "Body" object appears throughout the report, and the variable 'sticks' across pages where the object does not necessarily occur.

MS Access report sections challenge

Thank you for reading
I have a subreport that lists a number of purchase orders (POs) and displays the total of the orders in the footer detail section of the subreport.
The subreport is locayes within the Detail section of the main report.
In the main report; right before the subreport I have an amount (control) that is the allowance for a client (clients cannot order more than a given amount every month).
So I have the allowance and the total of POs. I want to see the balance (Allowance minus Total of POs) in the "balance" control in the footer section of the detail of the main report but I don't know how to reference the control that hosts the total of POs.
You can certainly reference controls in subforms/subreports. Though site here uses forms, the same concept applies to reports.
Specifically for your situation. Add a Balance textbox control in header or footer of main report with following control source expression (pay heed to exclamation and period markers):
=[Allowance] - [Reports]![yourmainrptname]![yoursubrptcontrolname].[Report]![yoursubrptfooterPOstotalcontrolname]

Crystal Reports 2013: Inconsistent Page Header Formula Fields

Background
I am using Crystal Reports 2013 SP1 to create a customized invoicing report for a client. This client requires invoicing to be combined onto one 'consolidated invoice' for each of their products. Client invoices are typically created at each originating location of the work for each version of each product. As you might imagine, a client with many products can receive many invoices! So, in order to achieve this consolidation, I created two Formulas:
ProdNameNoDig - A string field that removes the word 'Digital' so that versions are grouped together (i.e. both 'traditional' version charges and 'digital' version charges are included on the same 'consolidated invoice').
InvLocation - A string field that indicates a region so that multiple originating locations can be grouped together (e.g. invoices normally be split by City1, City2, City3, but will now all be included as Region1 on the same 'consolidated invoice').
I then grouped the data by ProdNameNoDig, then InvLocation, then InvoiceNumber, then LineItem. Here is a snapshot of the Design View with the Group Expert open:
When I view the reports, they are grouped properly- all of the invoices for a product's versions are grouped by region, and all of the details display as I intend.
The Problem
Here is the issue occurring when the report is created:
Product A, Region 1- Everything looks fine.
Product A, Region 2- Everything looks fine.
Product B, Region 1- Green circled areas of the report have the correct data. Red circled areas of the report use the ProdNameNoDig and InvLocation of Product A, Region 2
Product B, Region 2 - Everything looks fine.
Product C, Region 1- Green circled areas of the report have the correct data. Red circled areas of the report use the ProdNameNoDig and InvLocation of Product B, Region 2
This continues through the entire report
After the final product's last region, a blank (includes only the Page Header and Page Footer) page is created with the ProdNameNoDig and InvLocation of the final product's last region.
The Page Header is not properly displaying ProdNameNoDig or InvLocation (circled in Red) after a change in Group 1 (ProdNameNoDig). The SAME FIELD shown twice elsewhere on the report (circled in green) displays the correct information for the group being reported. The Page Header displays the information for the previous group! Why is a reference to the same Formula Field displaying different information in different parts of the report?
What you can do is create a section B on your location group, move everything from A to B and copy the info on you PH to A. Then suppress you PH when pagenumber <> 1 and same for section A, but when pagenumber = 1. In that way your info will be changing once your group change.
To the extent I understand your problem... whenever there is new Group you are facing this issue where last group2 and group1 are displayed in page header.
Without knowing how your data is getting printed as how group2 extends and where group1 starts.. my assumption is group1 is not starting when a new page starts and hence it still holds the previous value of group2 and group1...
one wayout would be instead of page header create one more group section of Group1 and display there your data.
Coming to the green area where data is correctly displayed.
One is in group2 which holds the group1 data as group2 comes after group1 and displayed correct.
second is page footer which comes after the group1 changes its values and correct data.
Let me know if it is not clear

Creating multiple-page reports in Access (new page for each group)

I'm looking to create a report which is specifically designed to be over multiple pages, based on one condition. The condition is that when the grouped item (call it invoice) changes, it starts a new page, instead of putting all the data on as little pages as possible.
At the moment it runs like this,
Invoice, Date, ID
------------------
2 , Now , 1
------------------
3 , Now , 1
------------------
I want to insert a page break between the invoice numbers, but can't figure how to do it, is it possible?
In the Group Header for "Invoice" on your report you can set the Force New Page property to Before Section to start each invoice on a new page. For details, see
Print each group of your Access report on a separate page