reporting-services

Get list of reports from SSRS?

痴心易碎 提交于 2019-12-04 23:21:02
I've just started working with SSRS and so far I've been able to show reports in my Winforms app using the ReportViewer, by hard-coding the report path. I would like get a list of reports from SSRS so I can display them and let the user select which one they want to see. Is there a way to request the list of reports from SSRS? Thanks. Yes, absolutely - Report Services has two well established web service interfaces. Check out this page here: Report Server Web Service and the links off it for more info, or see the Reporting Services Developer's Guide for some background and conceptual info.

How to add an image to an SSRS report with a dynamic url?

五迷三道 提交于 2019-12-04 23:12:04
I'm trying to add an image to a report. The image src url is an IHttpHandler that takes a few query string parameters. Here's an example: <img src="Image.ashx?item=1234567890&lot=asdf&width=50" alt=""/> I added an Image to a cell and then set Source to External and Value to the following expression: ="Image.ashx?item="+Fields!ItemID.Value+"&lot="+Fields!LotID.Value+"&width=50" But when I view the report, it renders the image html as: <IMG SRC="" /> What am I missing? Update Even if I set Value to "image.jpg" it still renders an empty src attribute. I'm not sure if it makes a difference, but I

How to check if SSRS Textbox is empty

流过昼夜 提交于 2019-12-04 22:35:17
How do you check if a textbox is empty in SSRS 2008? I've tried this code and it doesn't work. IIF(ReportItems!txtCountVolunter.Value = "", false, true) Try the following: =IIF(Len(ReportItems!txtCountVolunteer.Value) <= 0, true, false) You should use this expression =IIF(IsNothing(Fields!UserEmail.Value) OR Fields!UserEmail.Value = "", "Empty", "Not Empty") The first: IsNothing(Fields!UserEmail.Value) checks if the field value is NULL The second: Fields!UserEmail.Value = "" checks of the filed value is blank "" So you need both of them in order to check if the value is either null or empty.

What is the difference between matrix and a tablix?

旧时模样 提交于 2019-12-04 22:27:43
In Reporting Services. When I drag in a matrix, am I effectively dragging in a tablix? A tablix is a hybrid of table, list, and matrix. I understand (at least I think I do) the difference between a table and tablix, but not matrix and tablix. As Gabriel said, in SQL 2005 Table and Matrix were both available as data region options and they were two distinct objects with different properties. In SQL 2008 onward, Table and Matrix were replaced by a new object of "Tablix", which combined the properties of both the older objects. However the design interface still shows Table and Matrix on the

Multiple Datasets from Stored Procedure in SSRS

泄露秘密 提交于 2019-12-04 22:22:40
I have a stored procedure that returns multiple resultsets just as below Create StoredProcedure sp_MultipleDataSets as begin SELECT EMPID, ENAME, JOB, SAL, DEPTID FROM EMP -- first result set SELECT DEPTID, DNAME, LOC FROM DEPT --second result set end In BIDS, while creating a new report i configured the stored procedure for dataset. It creates the dataset ONLY with the columns returned from the first result set. It does not identify the second result set. How can I create datasets for both the result sets from a stored procedure like above Unfortunately, as the documentation explains here :

The report server cannot process the report or shared dataset

旧时模样 提交于 2019-12-04 22:15:00
I have a problem when I deploy my report project to a remote ssrs with the shared datasource. When I'm using the SQL Server data tool to "preview" my report, it's looks like have no problem. But when Y deply the project, this error message appear The report server cannot process the report or shared dataset. The shared data source 'DataSource1' for the report server or SharePoint site is not valid. Browse to the server or site and select a shared data source. (rsInvalidDataSourceReference) noteworthy that the datasource it's pointing to the remote database Tanner_Gram If you are using a

SSRS 2008 report not working with using a stored procedure

时间秒杀一切 提交于 2019-12-04 21:29:18
In a new SSRS 2008 report, I am going to change the inline SQL to a stored procedure since that is a requirement for the project I am working on. The SQL works fine within the SSRS 2008 report, but has a problem in the stored procedure. The error message that is displayed is the following: Query execution failed for dataset Msg 8114, Level 16, State 1 Procedure spRec, line 0 Error converting data type varchar to int. The stored procedure works if I select only 1 report. However if I select 2 or more reports that is when the above error occurs. The SSRS 2008 report has 18 embedded tablixes

Dimension Security in SSAS & SSRS

北城余情 提交于 2019-12-04 20:46:22
I am stuck with a problem of implementing security at dimension level in SSAS. Here is what I did - 1. Defined a role in SSAS and applied security at dimension level (Unchecking cube dimensions that I don't want this role to access and setting Allowed & denied Sets). 2. Tested using Cube Browser, it worked fine. 3. Tested using SSRS, no change, I was still able to query the dimensions & get results that I don't want. Question - Is it possible to propagate the security I define at Cube level to SSRS? I would like to believe yes it is. If yes then here is what I need - Users will logon to the

Using Microsoft Reports (.rdlc) in a 3-Tier app

为君一笑 提交于 2019-12-04 19:52:27
I'm new to reporting so need some good information/resources to help me get some reports set up in our 3-tier app. We currently have: UI (ASP.Net MVC 2 at present but also winforms in future), Business Logic and DAL (Entity Framework - Code-Only ie no edmx) The BL has "manager" objects for selecting and manipulating entities. Now I've started by creating a .rdlc report and have chosen as a data source an object which wraps the BL managers to retrieve the appropriate records. Now I'm trying to add a front-end to see if my report works... I believe there's no good way to do a ReportViewer in a

How to pass multi value parameter to SSRS from asp.net c#?

邮差的信 提交于 2019-12-04 19:34:32
I am hooking up a site with an embeded ReportViewer control. I need to pass a Multi-value parameter (string data type) to the report. I have tried using the following methods but each time the report errors with a parameter is missing a value. here is the method I am using: string s = String.Join(",", paramValue.ToArray()); // method 2 carriage return new line delimited string string s = String.Join("/r/n", paramValue.ToArray()) + "/r/n"; // method 3 values as a string array string[] s = paramValue.ToArray(); paramList.Add(new ReportParameter("ParamName", s, false)); Obviously the above code