Chart in report child is not resizable in report parent - reporting-services

I've got one report(called it report_child, i.e) inside a simple report in SSRS 2012 (chart-dataset) and it's fine.
Now, I've created one general report (called it report_parent i.e), and I want to embed the initial report_child chart in report_parent.
I embed it using subreport (report_parent contains a subreport called report_child) and all it's fine, but the problem is the initial chart size in the child_report is the same in the parent_report and it's not posible change it.
Is it mandatory an element of child_report cannot be resizable in the report parent?
SqlServer2012 SSRS12

Related

Slide Up Visible Sub Reports in SSRS Report

I have an SSRS Report composed off datasets (tablixes) and subreports. How do I have the reports slide up when they are visible.
Report
A (NOT visible)
B (visible)
C (NOT visible)
D (NOT visible)
E (visible)
Visibility is set based on user input/parameters, etc. In the above example what will appear on screen is the tablix B / sub-report E. How I want it to appear is with out extra white space which it now has.
or in another scenario they could just pick E which is common and now we get a lot of white space at the top. What setting do I pick, what code can i write to have the visible rectangle of data slide up to the very top of available space.
So all we see is
Report
B
E
or
Report
E
When you've placed subreports on your page, did you make whitespaces between them? I belive you did. And now, when you hide one of subreport, whitespaces still visible and accumulate. You should reorganize your page by insert rectangles one below the other without (or minimum) whitespaces between of them. Put your subreports into each rectangle and add whitespaces inside it. Change expressions to control rectangles visibility instead subreports.
Don't forget: in spite of subreport is hidden, it is still retriving data and loads your server. To avoid it, pass visibility status to your subreports, to tell thems datasets to select null.
P.S. If you see extra white space in preview mode, it is not allways the same as browser will display. Especially if you hide object directly, without using expression.

Add a page to SSRS report

I want to add a page to SSRS report, which can be toggle on/off based on a radio button selection.
The reason I want to add a page is so I can add additional report logic information for the functional users. Is it possible to add a page (with several text boxes) in SSRS report and show/hide based on parameter value?
NOTE:* One approach I could use is to add a rectangle and control its visibility via parameter. However, when hidden, it leaves a blank space behind. Is there a way to get rid of this blank space?
You can do this with a table component. Add a detail row and a footer row and set the dataset to read from SELECT 1=1. You can put a rectangle in the rows and build out your report in the first row and then optionally show/hide the footer row.

SSRS - How to hide a textbox from main report's header in sub-report?

I've a sales report of all customers for the company with each customer's sales summary page as the main report and individual transactions as a child report.
The main report has a heading/textbox in the header containing the word "Summary". The sub-report is in the last row of the tablix. Both the main report and the child report can span multiple pages. Additionally there are multiple sets of these main/sub-report (summary/transaction) combination, since it runs for all customers.
1. How can I hide the "Summary" textbox from the parent report in child report's pages?
What I've tried so far is that I've created a shared variable and using code behind I'm setting it to True/False (get/set functions). I set the variable to False before child report row in the main report and set it to True after the child report row. Then I've set the visibility of the TextBox using this variable. However, the problem I'm facing is that on the last page of the child report, the textbox appears again.

SSRS - How to hide parent report's header in a subreport?

I've to create a report that must be printed along with an existing report. Since the dataset is largely the same, I've created this new report as a sub-report to the existing report, and have added a before page break. So now both the existing report and (new) sub-report print on separate pages. The problem is that the header of the existing report gets printed on the sub-report also.
Is there a way to suppress/ hide parent report's header from the sub-report?
I guees SSRS doesn't allow to do exactly what your want, but if your subreport is on the last page, you can set PrintOnLastPage = False for report header, then it will not be printed, although I'm not sure how it will look if subreport generates many pages, I afraid that only the last of subreport's pages will be without header.
In that case all you can do is hacks - you can conditionally hide all report items inside header, setting their Hidden property to smth like this =IIf(Globals!PageNumber > YOUR_PAGE_NUMBER, True, False).
Or, if first part (parent report) generates unknown amount of pages, you can use PageName instead of PageNumber, and update report to change page name for subreport pages, f.e. by wrapping subreport into rectangle and specifying page name for rectangle. Expression then will be =IIf(Globals!PageName = "YOUR_SUBREPORT_PAGE_NAME", True, False).

SSRS 2008 Removing white space when hiding elements

I have been trying to resolve this simple issue for a few hours with no joy.
I have two tables within my SSRS 2008 report which are bound to different datasets and I need to show or hide the appropriate table based on a passed in parameter. This I have done with the hidden property of the table which works as expected. The problem I have is that when hiding the top item and showing the item beneath it I get the white space from the hidden item.
Trivial example
I created two tables and bound them to the same datasource laying them vertically.
I then set the hidden property of the top table to true and previewed the report.
You can see that the first grid is hidden but the white space remains. From my investigations I did see the ConsumeContainerWhitespace property used for this but in my case it did not clear up the white space.
Question
Is there a method of removing the white space for these hidden elements?
I would recommend two solutions depending on whether the datasets are the same.
1: If they share a common dataset then I would nestle them in another table that has 1 column, and 2 rows, and then change the row visibility depending on the parameters.
2: If the datasets are different, I would make each table a sub-report and then change the visibility that way.
Just another workaround caused by SSRS quirks!
This can be fixed by ensuring that the reports ConsumeContainerWhiteSpace property is set to true.
This can be found in the report properties. Click the yellow surround for the report, press F4 to open the Properties pane, and you can find ConsumeContainerWhiteSpace under there.
See also ConsumeContainerWhitespace property to remove blank space in SSRS 2008 report
The behavior can be controlled by following method
1) Right click on the top left box on the tablix and click on 'Tablix Properties' to open the properties for the tablix
2) Click on the "Visibilty" tab on the left hand side of the wizard
3) Click on the "Show or hide based on an expression", click on the Fx and paste the following formula
=IIF(RowNumber("DatasetName")=0,TRUE,FALSE)
4) Make sure to replace the "DatasetName" with the your dataset name (the one that is related to the tablix)
5) Also make sure that the ConsumeContainerWhiteSpace property is set to "True"
ConsumeContainerWhiteSpace property is a report level property and can be changed from properties window for the report. (click on the report outside of the design area)
This worked for me very well.
Select the object, go to properties and set the size to 0,0
Wired. Only contained them in another tablix or subreport then it works in hide them with no white space.