problem of conditional visibility and page breaks with rectangles in SSRS 2005 - sql-server

I am trying to insert a conditional page break, actually i had a report of 50 pages with invoices each invoice is 3 pages long so i need a paghebreak for the 2nd invoice t printon the next page as i need the whole report ot print back to back,so i inserted one page break,so this starts the next invoice to start on 4th page but i want next invoice to start on 5th page which is a new page and i inserted another pagebreak there if the 3rd page of previous report is not filled, but if the 3rd page is filled and the invoice goes on to 4th page then i dont need this additional page break
I tried doign this by taking two rectangles
--first with inert page break at the end
--second with conditional visibility of the rectangle2 and with page break at the start.
and the condition for the rectangle2 to be visible is like
Visibility---hidden and expression is
--iif(count(id field of the table in third page)>=24,true,false)
i.e 3rd page accomodates atmost of 24 records and if the records are more than 24 i dont need another pagebreak and i am hiding the rectangle2 only if records are less than 24 i need another page break and i am not hiding the rectanlge2
BUT THE VISIBILITY IS NOT WORKING AND THE RECTANGLE2 IS NOT WORKING.
Please help me with this..

You should be able to add a column to the data source, such as InvoiceNumber, that you could define as a page-breaking group. Then the page should break before a new Invoice and at the end of each of your rectangles.

This is a known problem with SSRS 2005. It's very unfortunate actually. Have a look at my question here.

Related

repeat row on top of new page

we have report with repeating headers but this time we want the top level group which contains data to repeat on top of each page.
I have set the row group properties: KeepWithGroup = After and RepeatOnNewPage = True
The tablix properties Repeat Header Rows On Each Page and Repeat Header Columns On Each Page are both checked as well.
The table header does repeat but that top level group does not.
In the image below we are trying to get the Office [Oname] row to repeat at the top of each new page.
Report Layout
The only way I have been able to consistently make this work is to add a page number column using a modulo of the row_number to the source dataset, and then grouping on that. This obviously requires that you make sure the number of data rows returned within each page number group will always fit on a page, which isn't always possible.

SSRS - 2008: Set Table height till the end of page/ beginning of footer

I have a SSRS report, which I need the table to extend till the end of the page. I have 2 tables next to each other and I am using the left table border to serve as a vertical line between them. It is an invoice table and the values are set dynamically.
The problem:
I want to extend the table till the end of the page or better yet set a vertical line till the end of the page, regardless of the values.
What I have tried so far:
Extending the table till the footer, leaving no space in between.
This works perfectly when I Preview it. But when I save it as PDF the
this change is not reflected.
Drawing a line till the footer. This only reflects on first page.
Setting a line image as background, again this reflects only on first page.
Ideas:
To insert blank rows in the table. Compute total number of rows, subtract from a fixed number per page and insert the resultant blank rows.
I have looked mostly everywhere in the MSDN forum, nothing seems to suggest to resolve this issue. Please suggest a solution.
MyTables
Create a rectangle for the area you want to cover (I guess this would be the whole space between your header and footer.
Then add your tables INSIDE the rectangle and add a simple vertical line between them, the full height of the rectangle.
Set the Report property ConsumeContainerWhitespace to True

Unable to get datawindow group trailer and summary to slide up

I have
a report with grouping.
some items displayed on the group trailer band
an autosized datawindow in summary band
a footer band
A run of the report brings 5 rows of data returned in the report's detail band.
The problem is, the report displays 4 rows of data on the first page then automatically puts the last row of the data on a second page along with the group trailer band and the autosized datawindow in the summary band.
I think this is due to the associated row of the grouping mentioned in the following.
http://pbbraindump.wordpress.com/2008/05/25/groups-and-grouping/
So essentially there are 4 rows of data, followed by a large empty space in page 1, followed by 1 row of data on the second page + trailer + summary.
I've tried setting "Slide Up" on all of the items in the trailer group and the summary datawindow but it does not slide up to make the report 1 page even when it looks like there is enough space on the printed report.
Why does it not slide up? Can it be forced to slide up?
Have you checked the 'Autosize height' on all of the bands?

SSRS: 2008 run same procedure with diff params for multi month report

I'm all about recycling-)
I have report that user want to run for selected number of month back (let say from 1 to 12).
If they selected 6 month back (Jul-13 thru Jan-2104, then I need to produce 6 pages with monthly report on each of them, and sp is the SAME for all reports just different time params.
How I can reuse my code??
For now I have 12 Tablix(s) with New Page=START, Hide condition set based on datediff(m,startDate,endDate) individually for each Tablix.
Then I need to run same sp with diff params, can I add some dynamics into it? or I better to have 12 sp(s)?
Thanks
Mario
You can achieve this with a single dataset and a List Report Item with an embedded Tablix:
Set the List Grouping to Group/Sort first by: =Year(Fields!YourDateField.Value) and then by =Month(Fields!YourDateField.Value).
Set the Page Breaks on the List Grouping to "Between each instance of a group".
Drag your Tablix inside the List Report Item.
Let me know if you need more detail.

Paging with a data set that can be changing?

I'm sure there is something out there about this topic but I just can't figure out how to word a search for it.
I have a table of records that gets loaded into a paging grid in the UI. The user has the ability to update/modify these records..also multiple users can use the system at once all hitting the same data. I have a filter on the paging grid allowing the user to see only X type of records.
When the user first enters with filter X selected they see items 1-25 on page 1 of 2. They page to the second page where the items should be 26-50..but before they paged lets say 25 records on the first page had their type changed by another user, now they don't appear when selecting that filter. So now we have 25 less items to page through which means items that were 26-50 before are now items 1-25 and what was page 2 is now page 1 and there is no page 2...
You can probably see the issue I'm getting into, I'm passing an offset to the query to get the next page of results..but now that offset is so high it returns a blank page of records confusing the user and our record processing.
There isn't really an easy solution to this problem. Even GMail/Google doesn't show the exact number of messages/pages found when searching something.
The first thing you can do (if you use a DataGrid/CellTable) is set the boolean exact as false when you call updateRowCount, and give it your current number of records instead of your total number of records. This will make the pager display "1 - 25 of over 25" instead of "1 - 25 of 50".
The next possibility is to update the row count regularly (using RPC polling to check for new/deleted records - or using server push techniques, see GWTEventService and ServerPushFAQ).
You can also check if your request returns items or not, and cancel the call/update the row count if it doesn't.

Resources