How to do SSRS Document Map bookmarking for subreports - reporting-services

I have a SSRS solution with several subreports in one report. Client needs bookmark(in PDF) for each subreport as shown below.
Left section shows SSRS design page with textboxes and subreports stacked . Right side shows the result we need to achieve.
I tried the below link to set DocumentMap. But could find a solution how to apply this for subreports.
https://www.mssqltips.com/sqlservertip/3504/sql-server-reporting-services-bookmarks-and-document-maps/
Any help on this is greatly appreciated.

If you just need a map entry to point to your subreport then you can set this by simply clicking on the subreport from your main report and setting the DocumentMapLabel property
If you need your document map to point to specific parts of your subreport that requires a bit more effort but still pretty simple. You have to setup a document map within the subreport. This will then be nested in the main report's document map.

Related

SSRS Report document map link goes to page before (another subreport) because the subreport it refers to contains a page break before

I'm using SSRS Report Builder to modify a report that I am currently very happy with. It is composed of several sub-reports, each inside their own rectangle on the main report. I am trying to add a Document Map so that our users can more easily navigate the digital version of the report.
Because the report is primarily reviewed in PDF/Physical form, I also use a rectangle inside each subreport which has the "page break before" option enabled, so that each subreport will have its own page.
I tried setting the Document Map label for the subreport, and have also tried setting the label for the rectangle that each subreport sits inside. In both cases, when I run the report, the Document Map link takes me to the page preceding the subreport. I believe this is due to the subreport actually starting on that page, but the only content on that page is the page break.
I have also tried putting each subreport inside its own page-break rectangle rather than putting the page-break rectangle inside the subreport, with the same result.
Is there a way that I can, either through code or configuration, load the correct page when a Document Map link is clicked?
I solved this problem by taking the page break out of the rectangle inside the subreport and putting a page break after the rectangle containing the subreport. Now the actual top of the subreport is on the first page that contains data. The Document Map is loading the correct page now.

ssrs subreport page break not working

The ssrs subreport page break is not working.
How can I get ssrs sub report page break ? Thanks.
i.e. Reports -> properties -> pagebreak is not working.
I usually put a subreport in a Rectangle and let the rectangle control the page break.
I'm not sure where you want to put your page break. Judging by your picture and arrow, it seems you're concerned with keeping the data of one subreport together without breaking.
This would be the KeepTogether property of the subreport object. Set it to TRUE so it will add a page break rather than break up a subreport instance.

SSRS - Page Break - Subreport

I have a report with two subreports inside. The main report has keeptogether true and page break checked in a group. Both subreports has keeptogether false and no page break.
My environment is SSRS 2008 and VS 2013 (Reportviewer 11)
I got two (separate) issues:
the page break is not working when I display the reports in reportviewer in browser. But it works when I export it into pdf.
if the main+subreports cannot fit to one page. then it basically cut the main report and subreport into different page (even though
keeptogether in mainreport is true and subreport is false)
Is there someone that can suggest what is going on? Some post stated that this is a default behaviour, if yes, is there any workaround for this?
Thanks before!
The default DisplayMode of the ReportViewer is set on Normal, try changing this to PrintLayout.
myReportViewer.SetDisplayMode(DisplayMode.PrintLayout);
When the report content exceeds the maximum page size it will break to a new page, there is no way of stopping this, in the designer the property even says "Keep together on one page if possible".
As your description of your actual report isn't completely clear, I'll assume that your main report has some data above the two subreports that you wish to be kept together.
To achieve this wrap that data inside a new Rectangle and set the KeepTogether property on True.
If I misunderstood you in anyway, just let me know and i'll update my answer.

SSRS subreport instead of reportfooter

I am working on a report that has variable coulmns and the report looks fine in preview.
But now I want to add a "Hazardous Notice" like a report footer but via using subreport.
And this Notice will be only having TEXT in it (no columns and rows)
I am able to drag the subreport from the tools beneath my main Matrix, but I am really confused that how can I get only TEXT in that HAZARDOUS NOTICE.. as it asks me to add parameters in it. Do I need to create a Parameter for that or not.. Please Help!!!

Subreports try and keep together leaving blank spots/pages

Reporting Services 2005
My layout is like this:
I have the mainreport which contains a table
This table has 3 groups it runs by, GrpLevel1, GrpLevel2, GrpLevel3
Sub-Reports are added to one of 3 groups and are executed passing that group key to the sub-report
So, a particular sub-report will run at GrpLevel1 and for every level2 it contains, the sub-reports under GrpLevel2 will run.
The problems I'm having are that the sub-reports want to jump to the next page leaving a gapping hole of white-space in the report.
If a sub-report contains a table with a bunch of data and it can not fit on 3/4s of a page (first page on report has report header on top 1/4), it will jump the whole thing to the next page leaving only a header, rather than printing what it can on the first page.
On the table I have "Keep Together" turned off.
I'm at a loss and about ready to set my cube on fire. Insight in to this would be greatly appreciated.
UPDATE ****************THIS HAS BEEN FIXED IN SSRS 2008 R2***********************
It has been fixed with (SQL Server) Reporting Services 2008 R2. You can now toggle the KeepTogether on Sub-Reports. Pagination looks a lot better.
Looks like there is no solution to this problem. The bug is aknowleged by microsoft, but its still not fixed in SSRS2008.
From the KB article (http://support.microsoft.com/kb/938943)
This behavior occurs because the
Subreport control has an implicit
KeepTogether property. By design, the
KeepTogether property tries to keep
content of a subreport on one page.
Because of this behavior, the report
engine creates blank space on the main
report if the subreport does not fit
on the same page as the main report.
Then, the report engine creates the
subreport on a new page.
The work around that they list is essentially 'don't use subreports'
I am not sure about the earlier version of SSRS, but I faced this same issue in SSRS 2008.
The solution is to change the Subreport property in Code.
Go to the solution explorer, right click on your report and click on "View Code".
Search for your Subreport.
Inside subreport tag you'll find "<KeepTogether>", which would be set to "true", change it to "false"
This property is not avaiable from designer and has to be changed from the actual report xml code.
right click of subreport and chose format subreport, then uncheck keep object together
Another way I got around this was to place the subreport in the report header. Of course that is very dependent on the report content and elminates any of the usefulness of subsequent sections but it did solve my problem of having a huge chunk of whitespace on the first page.
It took me a week to solve this one! But I did find a solution and happy to share it with you.
I had the exact same problem. In my main report, there is a Table that has 3 groups and 2 different subreports in each group. And these subreports had matrices. I believe regardless of matrices, subreports being placed inside group/detail bands within a table caused alot of unnecessary blank pages to be printed before, in between and after the sections. It was a pain the neck and I was thinking of removing the subreports but then it defeats the whole purpose of the report.
So finally, what fixed it was instead of placing the subreport in DETAIL bands of the groups in the table, place them in the Footer of the groups. Now I know this may change/affect the format of the report and may not fit in with your report purposes. But this fixed the issue for me. Another way of getting around the blank page issue was leaving the subreports wherever they are (detail or group bands), and moving OTHER detail bands into one Footer band. Essentially what needs to be kept in mind, is to reduce the number of detail/group bands inside the table. Limit the groupings and have minimum number of subreports within a table if you can manage that.
Hope this helps someone out there.
For SSRS 2008
If your subreports are in any group, you should go to group properties and switch the keep together property for that group(s) to false. This worked for me.