How can you automate copying a report on an SSRS Report server? - reporting-services

Right now we use linked reports in many places. This causes subreports to link back to the original folder.
Is there a good way to copy a report in SSRS to copy a report to another folder with C#. We don't want to manually open a report and save as to the folder where the linked item is.
Alternatively: is there a way to make subreport links appear like they're in the same location as the linked report?

If your link is pointing to report /xxx/A and you want to move it to /yyy/A then you have to manually re-create the links or use the ReportService api to programmatically create the links.

Related

Is there a way to globally change all the hyperlinks in all reports on a report server on SSRS?

We've just had one of our systems moved to a new server, along with 3600+ SSRS reports. All these reports contain hyperlinks. Unfortunately, none of these hyperlinks have been updated to point to the new server, and so are still opening items on the old server.
Instead of having to edit each hyperlink in each report, is there a way I can globally update the reports at the same time so that the hyperlinks point to the new server?
I thought running an update on the content field in the catalog table might do the job but apparently not from what I've been able to gather online.
Thank you for any help you can give.
Yep, normally it would be better to store your hyperlinks in a dataset.
I dont think you can do that globally, because your hyperlink is embedded in your report.
You can open your report .rdl file in text editor. In the text editor you can search for your hyperlink and replace it with the new value (search & replace). Well this still has to be done per hand for each report.
On top, you can write a small program in C#, .NET, etc... in which you pass your old and new hyperlink (single or as datatable). The program basically, opens all the .rdl reports and apply the search & replace then close and safe it.

SSRS button to go to subreport in excel export

We are creating a Summary report with lot of Sub-Reports linked to it in SSRS. When Summary report is exported as excel all Sub-Reports should be exported as separate tabs. So far it is working.
Now the issue is we need to have button in each row on the Summary report (in the tablix) , which when clicked opens up the relevant tab in Excel.This behavior is expected after report has been exported to Excel.I have been looking to find to solutions to this but haven't fount anything so far.
Any pointer/suggestion would be a great help.
Thanks
VSh
Add bookmarks and bookmark links to a report when you want to provide a customized table of contents or to provide customized internal navigation links in the report. Typically, you add bookmarks to locations in the report to which you want to direct users, such as to each table or chart or to the unique group values displayed in a table or matrix. You can create your own strings to use as bookmarks, or, for groups, you can set the bookmark to the group expression.
Here is the Microsoft documentation https://learn.microsoft.com/en-us/sql/reporting-services/report-design/add-a-bookmark-to-a-report-report-builder-and-ssrs

Combine multiple SSRS Report and publish that to SSRS native web portal

How can i combine couple of rdl reports and display that to SSRS native web portal. I already created that report and deployed to the server (SSRS Native portal) using Sql Server data tool 2015. But my client wants to view all reports in the same window. Although all reports has the same parameter.enter image description here
enter image description here
enter image description here
The SSRS native web portal doesn't contain a mechanism to link multiple reports and run them on the save page via shared parameters (or anything even like that).
You have two options:
Create the merged report yourself. You should be able to import (or copy/paste) the datasets from each report into a new report, link them all one one set of parameter(s), and copy paste the content of each report (then fix all broken references).
The option above is the naive way to merge three reports into one. Instead, you could create a new master report, add the shared parameter and then add each additional report as a subreport to the parent report. Tutorial here.
Create an ASP.NET application that wraps the multiple reports into a single page. This will be quite a bit of work if you have never done this, but you would be able to create a custom parameter(s), pass the parameter(s) into the each report through code and render the multiple reports on a single page.
I would recommend option number 2.

How to upload a .rdl report to CRM 2011

I have downloaded one of the system generated reports from CRM 2011, it saved as a .RDL file which I then opened and modified.
My question is, how do I then upload the modified report back to CRM. I have tried using the report wizard and searching for the existing file however it just kicks back an error message:
Query Build Error:
The specified record type does not exist in Microsoft Dynamics CRM.
It has not been developed on the SSRS or using BIDS, and I haven't created it using FETCH, all I have done is save the report to my desktop, modify some of the record names and then try to upload it again.
It is starting to annoy me now because having searched through the length of google and nearly every post I have seen has stated this is the exact way to upload custom reports.
Is there any reason why it is not working for me?
Go to Workplace.
Click on Reports Entity.
Click on New Report.
Select Report Type as Existing File.
Click on Browse and select the .rdl Report file.
It won't let you upload the file that way. You need to either edit an existing report or create a new report.
NEW
Reports
Click New
Report Type:Existing File
Choose File
Finish filling out required fields
EXISTING
Reports
Select a report & Click the Edit button
Report Type:Existing File
Choose File
Save

SQL Reporting Services - COPY reports to another folder

This is stupid that I can't figure out how to do this. I'm in the SQL Reporting Services Report Manager website. I have some reports in a folder. I want to copy those reports to a different folder so that I can point those reports to a different datasource. I still need the original reports in their original folder, pointing to their original datasource.
It's very easy to select reports via checkbox and use the Move functionality, but there doesn't appear to be a way to copy?
Any ideas.
There is no easy way to copy reports in report manager.
I wrote a tool to help me copy reports between servers, you can use the same to copy on the same server too.
http://code.google.com/p/reportsync/
I know this question is old but here is how I copy a report to another folder:
I open the original report in Report Builder and use 'save as'.
Only way I know is manually, one by one. This is in SQL2005.
Navigate to the location of the report(s)
Show details
Click the Edit icon next to the report
On the General tab under the "Report Definition" section, click "Edit"
This prompts a Save File dialogue box. Save the .rdl file somewhere.
Repeat ad nauseum...
Now you can import those reports you've just saved to your new location.
After I wrote this I saw this was the same answer as jimconstable above! Damn!
This is a little late, but just in case someone else stumbles upon this thread. I find the easiest way is to click the drop down arrow to the right of the report you would like to copy. Select "Edit in Report Builder". Once that's open just "Save As". Works like a charm.
Within the Browser, if you open the folder then use the drop down there is a Download option.
I compared the file sizes between download and save-as and found them different, so I prefer the download option.
I don't think these is a simple way to do this. You could pull them all out by going to each report->properties tab->edit. This will let you download the report. Then you can upload it again to another folder. But that sounds like a PITA.
You would be probably be best off the upload from the BIDS to a different folder.