Using RDL files in Web ReportViewer - reporting-services

I want to use a rdl file with the query information stored in it. I don't want to have to convert it to a rdlc file. I have an ASP.NET app that I want to show the report. I thought I would use a ReportViewer on my page and then have it use the rdl file. However, I get an error and in researching it appears that I have to convert the file to an rdlc file. I don't want to strip out the data contained in the report. How can I show the report to the user by running the rdl report?

What was the error message and what version of visual studio are you using? I have used the report viewer control with server based (rdl) files before with no problems, you have to make sure that the render mode (or might be report mode) is set to server and not local.

Related

PowerPivot and SSRS

Can PowerPivot connect to an SSRS 2008 R2 server without SharePoint (Native mode)? Would like to load from SSRS but seems to not want to connect from PowerPivot. Is there some type of configuration I need to do this?
There's no special configuration required, you simply need access to the report.
In Excel 2013, choose Get External Data > From Other Sources, and then under Data Feeds, choose Report and then enter the URL of the report in the box. You will then be prompted to select the tablix / dataset to import into PowerPivot.

Error with shared dataset when manually download report and put into ReportViewer

I have a server report that references a shared dataset on the server. It works fine if I add a ReportViewer to a page and set the report server URL and report path properties.
Because I need to look at the xml of the report and do some preprocessing, I:-
Manually download the report using: ReportingService2010.GetItemDefinition(path). I then convert this to an XDocument.
Do my preprocessing - this does not touch anything to do with datasets.
Load the xml definition into the report viewer using:
XDocument processedDocument;
using (var sr = new StringReader(processedDocument.ToString()))
{
viewer.ServerReport.LoadReportDefinition(sr);
}
When I attempt to view the report, I see this error in the server error logs:
Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
Shared dataset definition stream does not exist.
To get to the crux of the error, I've removed step 2 completely so that all I am doing is downloading the report, converting to xml and then loading the xml into the ReportViewer.
I do not get this problem when the datasets are embedded in the report.
Any ideas what is happening here?
ETA:
If I download the report, convert to XDocument, convert back to byte[] and then use ReportingService2010.SetItemDefinition() to save the report on the server, it displays fine in the ReportViewer (when the path is specified).
This means the problem is not in the xml<->byte[] conversions. When the ReportViewer downloads a report, using a path, it must be doing something with the referenced shared datasets that I'm not doing.
I have a workaround.
It seems to be a problem with the relative path to the shared DataSets. I presume I would have the same problem referring to shared images on the server as well.
Here's what I intend to do:
Download the report.
Perform pre-processing.
Use ReportingServices2010.CreateCatalogueItem to save a new report back on the server at exactly the same location, but using a temporary name.
Use reportViewer.ServerReport.ReportPath to reference the new temporary report.
ETA:
Actually, because the DataSet path references always start at the root, I don't think you have to store the report at exactly the same location. You can create a /Temp folder that you can easily periodically clean out.

SSRS 2008: How to define Table/Tablix style without using a wizard?

Or how do I change the Table (Tablix) style in an already existing Report Server Project?
(I'm talking about a style which can be set in Report Server Project Wizard)
The style selected as a step in the Report wizard sets many properties on individual items in the report. Once created there is no easy way to switch a report from one style to another.
Two options:
Recreate the report using the wizard and select the new style.
Create two reports using a simple dataset, and then compare the resulting .rdl file (XML) in a file compare utility, such as UltraCompare. This will give you a list of all the different properties.
The file used for the style templates is at
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Business Intelligence Wizards\Reports\Styles\en\StyleTemplates.xml in my installation of BIDS.
Examining this file can show you the changed properties as well.

Reporting Services: Root element is missing

I downloaded a report in rdl format from the server (i couldnt find the original rdl from my hdd) and when i try to open it in Visual Studio i get an error:
Root element is missing
Root element is missing
And a link to Edit code, which does nothing when you click it.
Any ideas?
Try this solution:
Open rdl file with a text editor like notepad. You will see a xml format. In BIDS you can add a rdl report in your report project, after that copy the xml content of the rdl file to code view of new rdl report.

how to add file extension in url while passing it to ssrs

i want to save/open a file in txt format other then CSV in SSRS 2005. So any one who knows how to add file extension in url that can overirde default extension in SSRS 2005..
I think you mean you want to export a report to a text file, but not CSV format? You haven't specified what other format you want, but if you want to output to a text file with a different kind of delimiter (for example Tab or | ) then you can do that by rendering the report via URL Access and overriding some of the rendering extension parameters.
For example, to export to a TAB delimited file with the extension .TXT:
http://SERVERNAME/reportserver/?%2fReportFolder%2fMyReport&rs:Format=CSV&rc:FieldDelimiter=%09&rc:Extension=TXT
As far as I can tell SSRS 2005 does not support setting these values in rsreportserver.config unfortunately. However SSRS 2008 does, which means in 2008 you can create a new rendering extension based on CSV and specify these settings. Users can then select the render format from the Export list in Report Manager, however as I mentioned 2005 does not support this so I think URL Access is your only option.
CSV Device Info settings for SSRS 2005
Report Server URL Access for SSRS 2005