Report Definition (RDL) Hide In Tile View - reporting-services

I have some subreports which I would like to have hidden from the tile view in SSRS when they're deployed.
Is there a way to have the .rdl specify this or is this particular property only available through the SSRS interface?

Whether a report is hidden or visible in Report Manager is not a property of the .rdl / report itself, and can only be set once the report is uploaded to the SSRS server.

You can set this property directly from the sql reporting server:
Update [ReportServer].[dbo].[Catalog]
Set Hidden = 1
Where <condition>

Related

Adding SSRS report through CRM2016: Prefiltering doesn't work?

I've created a custom Reporting Services report from within Visual Studio that is intended to use automatic prefiltering as described here.
So, I've created my query as follows:
select fullname, createdbyname, createdon
from FilteredContact as CRMAF_FilteredContact
order by createdon desc
However, once I add a new Report in CRM based on the report's .rdl file (as described under "Deploying the Report" here) it adds the report fine, but two things happen:
1) The shared data source for this report is initally invalid, both CRM and SSRS refuse to render it with the error:
"The report server cannot process the report or shared dataset. The shared data source 'MyOrg_MSCRM' for the report server or SharePoint site is not valid. Browse to the server or site and select a shared data source. (rsInvalidDataSourceReference)"
I have to manually set the DataSource from within SSRS to /MyOrg_MSCRM/CustomReports/MSCRM_DataSource to get it to work.
2) The report doesn't appear under "Run on Selected records" but under "Run on All Records", and doesn't perform any prefiltering.
Also, when I download the .rdl from SSRS it hasn't modified it, neither adding an extra parameter or changing the SQL query. as I would have expected based on this information.
What could I be doing wrong?
I'm using MS CRM 2016 update 1 (v8.1.0.359) on premise, with SQL Server 2014 Reporting Services and the SRS Data Connector installed on the same machine.
Apparently, you can use a shared data source reference, but you have to name it MSCRM_DataSource, just as the Data Source that MSCRM uses for its reports.
If you upload a Report in MSCRM like this, MSCRM recognizes this and automatically updates the data source to the valid /MyOrg_MSCRM/CustomReports/MSCRM_DataSource datasource, and also adds the prefiltering modifications.
You've created a Shared Data Source that you are using for multiple reports. When uploading reports through CRM this is not supported. Each report must have its own connection details embedded in the report.
I think the reason for this is, as you are trying to do, the report gets modified to add hidden CRM parameters and to alter the queries so that pre-filtering can take place.
To fix this, you have to modify each report and enter the Connection Details directly into the report rather than using a Shared Connection. Its a little annoying but should give you the results you are expecting to see

I need to send only first tab of rendered excel via mail subscription in SSRS 2008

I have created report with multiple tabs when exported to excel. In Mail subscription, I need to send only first page of my rendered excel of report.
Is there any way to do this?
Thanks
In SSRS 2008 R2 or later you can use the Globals!RenderFormat.Name
=IIF(Globals!RenderFormat.Name = "EXCEL")
If you are using SSRS 2008 or earlier, this is not available. the only way I can think of doing it is to add a parameter to the report that you can then use to hide the relevant sections. You could then set this parameter as default = false but force it to be true for your subscription.

CRM 2011 SSRS report - using non-FetchXML data source in sub-report

I have a SSRS sub-report that uses an XML datasource which works fine in BIDS or when deployed and run from the SSRS server, however once deployed as a report in Microsoft Dynamics CRM 2011 it fails to run when called from CRM as SSRS throws the following exception:
Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. --->
Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException:
The data extension supports Windows Integrated Security and No Credentials (anonymous request) only.
The parent report uses FetchXML to load some data which is then passed into the sub-report as parameters. CRM automatically passes through UserID/OrganizationID are credentials to any reports, which is correct since the credentials are required in order to call the FetchXML in the parent report, however judging from the exception it would appear to me that the sub-report is also (incorrectly?) inheriting the data source credential settings from the parent reports, despite the sub-report using an entirely different type of data source and credential setting.
If sub-report is published in CRM and is run by itself then it also works fine, but this doesn't meet business needs. The sub-report must be wrapped in the parent report in order to pass user selectable parameters through.
Are there any methods of overriding this behavior, perhaps some custom code in the sub-report that can force the XML data source to use the 'Do not use credentials' setting?
After pulling my hair out for hours over this issue I eventually discovered that it seems to be an issue with CRM caching the initial data source credential settings (which must have been initially incorrect) from when the report is first uploaded. If you re-upload the RDL on top of an existing report it mustn't update some cache that it must maintain of credential settings.
Deleting the published reports then republishing the sub-report first (XML datasource), then the parent report (decided to go for SQL datasource rather than FetchXML to try and eliminate FetchXML as the issue) works as expected.
Lesson to learn when using CRM SSRS reports: try deleting the reports and trying again!
This is on CRM 2011 UR11.

how to show some data at the time of report download

I have to make headers in my reports what i want when some one see the report in report viewer it should not show the headers of the report but when i export the report header should be present in to the report.
Is it possible to do this.
If you are using SSRS 2008R2, you can use Globals!RenderFormat.Name method to achieve your required output. But using this method, you can hide all the header controls but there will be blank space appeared for the report header in report preview.
Take a look into
Use of RenderFormat method in R2

SSRS Drillthrough server report error

I have a SSRS report with an action on a text-box.
Go to report property is set to the parent report so this makes the parent report also a drillthrough report for itself.
I deployed the report on the report server and it is rendered ok and also the drillthrough action works ok in the Report Manager.
When I attach this report to a ReportViewer control in an .aspx the parent report is rendered ok but the drillthrough action causes an error (Invalid argument).
I have 2 visible and 3 hidden parameters for this report.
I tried to override the ReportViewerCtrl_Drillthrough event and added the following code:
ReportViewerCtrl.ServerReport.SetParameters(reportParamList);
ReportViewerCtrl.ServerReport.Refresh();
where reportParamList is a list of parameters passed from the parent report to the drillthrough report but I get the same error (I used DrillthroughEventArgs.Report.GetParameters() to get the list of parameters and they're passed by in a correct way).
I didn't find on other forums something like this related to reports deployed on Server Report (only for local report).
Any idea would be very much appreciated!
I have found the issue for this.
It was related to the way .aspx page was built.
My report viewer control was framed by a form tag but it appears it also needed a table tag too.
So this is how my .aspx page looks now:
table
tr
td
form
ReportViewer Control
/form
/td
/tr
/table