reporting services - Page break within a cell - reporting-services

On an application, multiple users can give feedback about an event. A Feedback is composed by the username, date and details.
The application also provides a report with an header and the list of feedbacks on that event. This list is a table, without header or footer, but with 2 rows for each feedback. One row containing the username and date and the other with the feedback details just like the example below:
username - date
several lines of feedback details
Everything works great until someone decided to submit a feedback with 25 lines. Since the cell is to big to fit on that page, reporting services will move that cell to the next page but keeps the cell with the username and data on the first page.
Is there a way to split the details cell between the 2 pages, or at least keep both rows together?
I'm using report server 2005 for this.

Set the KeepTogether property of the details textbox to False.
This might start splitting lot of comments though, which if you have a RowGroup for the comment you might be able to fix by setting the KeepTogether for the RowGroup as True.

I ended up placing each row on a subreport. I don't have access to the source code anymore but I think that the report services keep subreports together or at least there was a property that would keep the subreports together.

Related

SSRS - SubReport

I have a subreport I am trying to link into my main report. The main report pulls back information from one database and the subreport pulls from another. I could use lookup, but I lose the ability to format so I was hoping to achieve this with a subreport.
I enter a date range via my parameters, and let's say I get 30 client/matter codes back. It page breaks at the end of each row, so the data for each client/matter ends up on its own report. The goal is for me to output a large number of reports based on date ranges. The subreport pulls in folder names, and just like the other information, the folders for only that client/matter should be on that report.
What's currently happening is on each report, it just lists ALL of the folders for ALL of the client matters on each and every report.
I've tried making the subreport an adjacent group (which you can see in the screenshot) and grouping on Client code and then matter code. I've tried making the client code and matter codes internal parameters in both reports in the hope that it help filtered. I also tried just inserting the subreport into a cell inside the matter_code group but not as a group itself.
I apologize in advance if my explanation doesn't make sense. I'm having a hard time trying to put this into words.
From your explanation I would assume that you have a subreport in a group but you are not passing anything through to it. Have you tried passing through parameters to the subreport that uniquely define the customer and the customer folders?

SSRS Group Header repeat only at Top of page

I have been tasked with cleaning up some outstanding issues with my company's invoices. It is a very complicated report (four separate invoice formats are combined and determined conditionally because the application that calls them only allows 1 invoice format). I am going to try to keep this limited to just the current issue, but will provide as much info as necessary to solve the issue.
There are tons of existing questions about repeating group headers, like this one and they have helped me solve most of my problems, but I have not seen the problem I am still having addressed. I am sorry if I missed it!
The issue: The last tablix on my report is finally repeating the headers on all pages, but I now have the issue where when there is enough room, the header will display in the middle of the page below the second to last tablix.
Unfortunately, adding a page break breaks the page numbers even with reset page number set to false. (I have explicitly added the xml tag and it still resets)
What is the best way to only show the group headers at the top of the page when there is extreme variability in the size of many elements in the report (note fields that vary between one short line and epic novel length and images that vary in physical size and quantity).
Thank you for taking the time to read and help with my issue, I will continue searching through the similar questions that writing this prompted.
I will wait to accept this as THE answer, in the hopes that someone out there has a brilliant solution that has escaped me.
Based on comments here https://www.mssqltips.com/sqlservertip/3482/sql-server-reporting-services-ssrs-controlling-report-page-breaks/#comments
It appears my options are:
1. Accept that some pages will have two headers
2. Accept multi-page reports displaying page 1 of 1 on every page
3. Rework the report to not use a subreport
Thank you to everyone who has taken the time to consider my problem!!
#WhatEva sorry about the slow reply; am in and out of work this week and next. Capsule response: imagine the final, correctly formatted report, and imagine that you have all the text (non-header, non-footer) data in a single table. Add group columns as necessary to allow you to trigger the relevant headers and footers. You're likely to need a sequence id column to govern the order of printing of the rows. The report you're trying to write would have generated the text body fields; rewrite the report data sets as SP procedures to insert those text rows into the table, and ensure the group columns are filled out suitably to generate the right headers etc. Then write an SSRS report to pull that data and use the usual mechanisms to manage the headers and footers. It's hard to be more specific without knowing details, and there are certainly limitations on this approach, but it can solve some problems.

2 Page Report per record

I am having issues recreating an old report with SSRS. The original report would pull about 5-6 records from SQL, and then have a corresponding 2 page report for each record. This would be easy if I could just create an individual report for each record, which is possible, but is not what is being asked of me.
I need to be able to have 2 pages for each record I return. For example:
Page 1 will have a different table than page 2 for the same record and will be view-able as:
record 1:
page 1,2
record 2:
page 3,4
record 3:
page 5,6
No grouping is necessary for records. They just need multiple pages to repeat.
Someone I work with suggested a sub-report, but I'm not sure how that would work.
I use the report builder to create reports.
Thanks for any help. I will gladly clarify if necessary.
The nature of SSRS is that it grows based on whatever data is available when it is run. In order to force it to take up two pages per record, you'll need to set a placeholder. One way to do that is to have a table that spans two pages. Make sure the "CanShrink" property is set to False for the cells in at least one of the columns. You can remove the borders to make the column invisible if the length of the report varies.
Next, you can add columns as needed for your other report data. It doesn't really matter if you want to use a subreport or not, either way will work.

Building a rdl report for CRM

I'm creating my first report for CRM 2011 using SQL Server Business Intelligence Development Studio and i've managed to do a decent amount but as I move into the more complex parts i'm becoming stuck, and I was wondering if someone would be able to help me with a few questions I have:
I'm using fetchXml to get the data from CRM for some accounts that the report is for, I need to include some data from a child entity but can't include them in the same way that I can for a parent entity to accounts. So for this I'm assuming I need to use a separate fetch query, but how do I pass the ID of the account the report is looking at into the second fetch query as a parameter?
Once I've got the names of all the child items with the fetchXml, whats the easiest way to display them all in a numbered list?
EDIT: For 1 and 2 I found that I can use a subreport with the child data in it. Using a list item I can show all in a bulleted list and I can pass the parameter through from the main report to the subreport
I'm listing the account's address on the report but since they might or might not have the lines 2 and 3 fields completed i'm unsure of how to display it without either missing off some of the address or leaving big gaps. I've tried creating different text boxes with the different combinations of line 1, 2 and 3 and then make only one visible with the use of expressions but the iif statement always returns false. Is there an easier way to do this?
EDIT: I've found out how to do this using a number of different text boxes containing the different combinations and hiding them using the visibility rule. What was initially confusing though is that the rule is for if the box should be hidden, rather than if it should be shown
When I add a field onto the report it always has a "First()" statement on it. Is this required or will it limit my report in any way?
EDIT: This doesn't seem to have an effect on the report as the record to run it against is always selected beforehand, so the First() statement doesn't restrict any data
If anyone could help me with any of these questions at all then that would be greatly appreciated.
Thanks
I've found the answers to my questions, i've put them in the original post.

Reporting Services - how to represent additional data for a row

I have a report (SSRS 2008 r2) that is used to report on enquiries made on the web site. In the data rows, I don't initially display the enquiry message due to the potential physical size of this data in the row..
So, Im thinking I need to display this message field when the row is "expanded" and it could be displayed below the main data row but full width. Im sorry if that's a little vague as Im new to Reporting Services and Im not sure how to go about this so Im looking for some suggestions on the best method to use aswell as how to implement.
Many thanks,
In your table, choose detail, right click and select "Add a row below".
Merge the cells of the row and add the message field.
Select the message row (make sure you have selected the row, not the cell) and in the Visibility properties set Hidden to true and in the toggle item choose a field from the row above.
This will add an expand/collapse item on the row first row and by clicking it, it will expand and show the detail message