all groups > sql server reporting services > july 2006 >
You're in the

sql server reporting services

group:

Subreports on the report server


Subreports on the report server Ben Watts
7/25/2006 4:45:52 PM
sql server reporting services: I havent worked alot with subreports so I have this question pertaining to
subreports showing up on the report server with the regular report. Do they
have to be on there and if so can they be hidden. Anything that might help
will be greatly appreciated.

Re: Subreports on the report server sunny
7/26/2006 5:34:43 AM
Hi,

You would create a sub-report just the way you create any other report.
While using it as a sub-report, you can drag a report that's to be used
as a sub-report on the parent report (the report in which you want to
use the sub-report).

Yes, you can hide sub-reports. The table control used in a report would
contain a sub-report. If you want to hide a sub-report, you can do so
by making the cell inivisible in which the sub-report exists on the
parent report.

If you've any confusions about this, let me know.

thanks,
Sunny



[quoted text, click to view]
Re: Subreports on the report server rwiethorn
7/26/2006 7:29:03 AM
Ben,
Yes you can hide the report in the Report Manager:
Click the Show Details Button to the right of the screen.
Click the Edit icon of the subreport
In the General Node, check the Hide Property, and click Apply.

Note: this 'hide' only works when the Default View is selected in the Report
Manager.

If the user clicks 'Show Details' the subreport will be displayed.

If your trying to write a Web App that shows the available reports in a
dropdown, try something like this:

ddlReports.Items.Clear()
Dim Report As CatalogItem
For Each Report In ReportList
If Report.Hidden = False Then
If Report.Type = ItemTypeEnum.Report Then
Dim MyItem = New ListItem(Report.Description, Report.Name)
ddlReports.Items.Add(MyItem)
End If
End If
Next

Hope this helps,
rwiethorn

[quoted text, click to view]
Re: Subreports on the report server Ben Watts
7/26/2006 8:02:12 AM
I may have been very confusing. You know when you display your report on
the report server for other people to use. Well the subreports show up just
like a regular report on the server. So if you deploy your report to the
report server to a blank folder and it has a subreport in it, then that
folder will contain two reports. Your regular report and the subreport. I
want to know if this is necessary and if so can you hide the subreprt.

Thanks

[quoted text, click to view]

Re: Subreports on the report server Bruce L-C [MVP]
7/26/2006 8:57:21 AM
Click on the properties for the report and check the box that says hide in
list view. I also do this for my data sources, the user doesn't need to see
them.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: Subreports on the report server Ben Watts
7/26/2006 9:07:31 AM
Thanks alot Bruce, that has been bugging me for a long time. Thanks for
the help.!!

[quoted text, click to view]

AddThis Social Bookmark Button