url links to SSRS reports - silverlight

I have a sql server which hosts three groups of reports. Rather than linking to the reports manager page which shows all three report groups I decided I would like to link directly to a report group.
Here's the URI which i'm passing (this is coming from a silverlight usercontrol with a button click event)
http://localhost/Reports/Pages/Folder.aspx?ItemPath=%2fConveyor+Reports&ViewMode=List
but instead it sends me to http://localhost/Reports/Pages/Folder.aspx
In that link ^ i'm trying to link into the "Conveyor Reports" group directly. But the end result is always redirecting me to Reports Manager homepage.

I modified my formatting to
http://localhost/Reports/Pages/Folder.aspx?ItemPath=/Conveyor%20Reports
and it worked.

Related

SSRS Button in App Embedded Report Sends to a SSRS Server Link

I have successfully embedded an SSRS report into my application and on the report I have a table with some data. I have grouped some columns and indicated in details group properties that it can be collapsible like so:
(If anyone is wondering the expression on the month is just doing this =Left(MonthName(Fields!monthNumber.Value), 3) and works as expected.
Preview result is something like this which in SSRS builder preview behaves as expected.
Now the problem is, when I go on and try to press the button to collapse or show some of the months in my live app, the report I am assuming tries to reload and instead the buttons send me to an SSRS link that is a completely irrelevant page to my webapp and the page looks something like this:
Get help button just sends me to a Microsoft site that is kind of useless.
I AM forced to use a rather old and meh IDE called "Alpha Anywhere" and I am not exactly sure if it is just the IDE quick. I don't think it should be, something credential-wise is probably going weird.
The report itself is configured to use a shared data source from SQL Server that is accessed using security credentials I created specifically for SSRS.
Basically everything is working fine, just the collapse buttons are acting unexpectedly.
Any help would be appreciated!

SSRS - How to export data to a single excel spreadsheet when using report pagination?

I have a 2012 SSRS report that process thousands of records, it's a paginated report via an SSRS parameter.
When we export the report, the data is being sent to multiple spreadsheets (due to the pagination).
Is there any way to avoid this? To keep pagination but export the data to a single spreadsheet?
Thanks
There are two different kind of "pages" when viewing a report. There are natural breaks based on the page size and then there are hard page breaks that can be set to occur between objects or groups.
With hard page breaks it's all or nothing. The sheets created during export are a direct reflection of the page breaks in the report.
However, if you simply let the report create pages during viewing and don't specify any actual page breaks, all the data will export to one sheet!
Another hack way of doing this is.. have another version of the same report without the group pagination. Hide this report. Have a text box on your original report.. call it "Export to Excel" or something like that.. under actions for the textbox.. select go to URL. and in there put in your report server path to your hidden report.. including any parameters in your original report.
The link would look something like this - Note the Command at the end of the URL:
"http://yoursite/ReportServer/Pages/Folder.aspx/Production%20Reports/?%2fProduction+Reports%2fYOUR_HIDDEN_Report"&"&parameter1=" & Parameters!parameter1.value &"&parameter2="& Parameters!parameter2.value,& "&rs:Command=Render&rs:Format=EXCEL"
You have to play around with the link to get the correct link.. Once you have the correct link.. run the original report report and click on the "Export to Excel" Button / text box .. You will now see a prompt to download the Excel file..
You should not have a as a single sheet.. done.

Help for using (exernal images) from the website with SSRS

I have a small web site where i maintain users data. I maintain the users data in table and store there images like /images/users/user_id.jpeg on the server.
I am using the ReportViewer control in the asp.net page to show the reports from SSRS in the web application.
Now user want reports where they can see the users image in the report so that they can export it as pdf and get it printed.
In report i tried html image tag with full and relative url with option to render HTML however its not working. Also i tried the image control in the toolbox with external url and that too appears to be now working.
Can someone please help me get around this problem or guide me to some helpful links.
Thanks all,
It will be a lot easier to set up the report so that your users can see the image, if you can see the image in preview in Report Designer.
Make sure you have a working URL that takes you to one of your images. Test it, by pasting the URL into the address bar of your browser and ensure that the image is displayed in the browser.
Delete the existing image from your report. Insert a new image into the report object (normally a list or table) you are using to display your table. (This should be where the old image was.)
Specify Web as the image source, and enter your working URL as the URL of the image.
Preview the report in the report designer. You should be able to see the image (with the hardcoded URL) displayed correctly in the report.
Assuming all images are stored in the same directory on your server, switch to the layout tab of your report designer and click on the image object. In the Properties window, the value attribute should be the harcoded URL.
Click on the <Expression...> option from the dropdown menu for the Value attribute. Edit the expression so that it says ="your URL, without the filename" & Fields!your image filename data field name.Value
Preview the report in the report designer. You should be able to see the appropriate image for your data displayed correctly in the report.
If everything has gone correctly up to this point, deploy the report and try viewing it in the Report Manager. You should be able to see the appropriate image for your data displayed correctly in the report.
At this point, your users should now be able to see the report images.
I tried everything!!! It wasn't working in BIDS, Web Browser nor a Winform Report Viewer control.
I ended up hard-coding the image and it still didn't work:
="http://MyServer/Reports_SQL2008/Pages/Resource.aspx?ItemPath=%2fProjectReporting%2fBRAND_Logo.png&RetrieveResource=True"
I am pretty sure the problem was something to do with Active Directory Group Policy propagation. I suggest to leave it overnight if you have the same problem and have tried everything you can think of:
Setup Unattended Execution Account in SSRS Config with a service account who's password wont expire:
Permissions (both on image and also at Site Settings):
Can navigate to the image successfully, but it still doesn't show in the report.
Have the SSRS Image Properties set correctly, with the equal sign and url enclosed in double quotes, ie: ="url"
Even clear your browsers cache and tried different browsers, etc, etc
Anyway next morning I tried and the hardcoded path works and now this dynamic URL works too:
http://MyServer/Reports_SQL2008/Pages/Resource.aspx?ItemPath=%2fProjectReporting%2f" & First(Fields!Brand.Value, "ClientAndBrandByAccount") & "_Logo.png&RetrieveResource=True"
The XML in the RDL file is HTML encoded and looks like this:
<Image Name="Logo">
<Source>External</Source>
<Value>="http://MyServer/Reports_SQL2008/Pages/Resource.aspx?ItemPath=%2fProjectReporting%2f" & First(Fields!Brand.Value, "ClientAndBrandByAccount") & "_Logo.png&RetrieveResource=True"</Value>
I tried to make the Server URL dynamic as Alex Z shows, though I had to use this Replace code:
=Replace(Globals!ReportServerUrl,"/ReportServer_","/Reports_") & "/Pages/Resource.aspx?ItemPath=%2fProjectReporting%2f" & First(Fields!Brand.Value, "ClientAndBrandByAccount") & "_Logo.png&RetrieveResource=True"
Create a relative url using the expression and global variable Globals!ReportServerUrl
= Globals!ReportServerUrl + "your path to image"

SQL 2005 SSRS Report Manager changes

How can the Report Manager interface be changed to view only from the gray bar right below the four tabs, view, properties, history and subscription?
It can't except va URL access direct to the ReportServer service where you have the options to specify which bars you want displayed.
Report Manager has no options or settings to control layout.
Edit:
Report Manager is another application that gives a GUI to manager reports. It simply uses the Report Server web service in the /ReportServer folder. You can not configure Report Manager layout at all.
URL Access does not use Report Manager: it goes directly to the web service. You can decide which tool bars you want when using URL Access.
If you want to link to a report without showing the top portion of the Report Manager window, you can use the following path.
http://MyServer/ReportServer?/MyFolder/MyReport
You can pass other parameters to set additional options such as show/hide toolbar, zoom, etc. See the following link for more info.
msdn.microsoft.com/en-us/library/ms152835.aspx

Setting datasource on a Reporting Service report

i have a drop down list contains the name of reports and each report have a value (1,2,3...) and i have a popup window that appears when user click on view report button
this popup is a web page that contains the report viewer ,,in cs of this popup page i have a swtich that takes int which is the value of the report eg.if i want to display the first report so i chose the first one in the drop down list and the selected value is 1 and it is passed to the page that contains the report viewer in a session variable and pass it to switch then case 1;........break
so i want to know how to create an object of type report and bind it to the report viewer in each case ,,i have made something like that but i used crystal reports and crystal report viewer which has a
CrystalReportViewer1.ReportSource = rpt;
CrystalReportViewer1.DataBind();
and i have a report object
rpt.SetDataSource(dt);
ReportDocument rpt;
but i cant do anything like that when i used reporting service
so please help
thanks
You are talking about the Microsoft SQL Server Reporting Services (SSRS), right?
The approach is a bit different than with Crystal - basically, SSRS is by default a server-based reporting engine, e.g. your application (Winforms or ASP.NET or whatever it is) doesn't actually render the report locally, and also it doesn't supply the data locally.
In SSRS, this is typically handled by the report itself and on the server. You typically only simply show the report (possibly configured with some report parameters), but all in all, the Reporting server will grab the data, format it, render the report, and your application really only shows the output in the end.
If you want to render a SSRS report locally, you need to have a *.rdlc file - do you have this, are you familiar with that option?
If you do - once you're into locally rendering the report, of course, you will also have to provide the data locally. If you use the ASP.NET or Winforms ReportViewer control, you can do this something like this:
ReportViewer reportViewer = new ReportViewer();
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.LocalReport.ReportPath = "Report1.rdlc"; // supply path to the RDLC file
reportViewer.LocalReport.DataSources.Add(.........)
reportViewer.RefreshReport();
Basically, you need to tell the ReportViewer control that you're dealing with local rendering, and then you need to give it the path to the RDLC file, and you can add as many data sources to the ReportViewer.LocalReport collection as you need to have for your report.
Does that help at all? Otherwise, please clarify your question a bit more.
See a VB.NET sample of retrieving data for a local report from a web service here.
I tried doing this a while ago. I gave up because it wasn't that important, but my idea was this:
Use web service to create a new datasource
Use the web service to change the data source on the report
Render the report in ReportViewer
Switch DataSource back to original using web service.
My knowledge of ssrs is limited, but might be worth a shot.

Resources