reportingservices-2005

Passing values for multi-value parameter in SSRS query string

[亡魂溺海] 提交于 2019-12-03 08:49:32
I have two reports built using SSRS 2005. The first report is set to navigate to the second when a specific field is clicked. I am using an expression similar to the following in the "Jump to URL" property of the textbox: ="javascript:void(window.open('http://server/reportserver?%2fFolder%2fMyReport&rs:Command=Render&Date=" & Fields!Date.Value & "&MachineId=" & Fields!Machine.Value & "'))" There is a multi-value parameter on the second report. I need to pass multiple values for this parameter in the URL query string when calling this report. Is there a way to pass multiple values for a

Report viewer does not load, showing blank space - running local RDLC files

匆匆过客 提交于 2019-12-03 06:11:23
I got a problem with reporting services, running local rdlc files on the 2005 version. I have in the HTML a report viewer set to run locally as follows : <rsweb:ReportViewer ID="ReportingServicesReportViewer" runat="server" Height="100%" ProcessingMode="Local" ShowParameterPrompts="False" Width="100%"> </rsweb:ReportViewer> In the code // create SqlConnection SqlConnection myConnection = new SqlConnection(ConnectionString); myCommand.Connection = myConnection; SqlDataAdapter da = new SqlDataAdapter(myCommand); //get the data DataSet data = new DataSet(); da.Fill(data); if (data != null && data

Set a table's visibility to false when it has no rows (in reporting services)

独自空忆成欢 提交于 2019-12-03 05:25:53
问题 Is there a way to set a table's visibility to false, if the table has no rows? I want to hide a table in Reporting Services when it has no rows. Setting NoRows to ="" isn't sufficient in this case as space is still left for the table, and some of the table's formatting is still visible. I'm using Microsoft Visual Studio / SQL Reporting Services 2005 回答1: Try setting the table's "Visibility.Hidden" property to this expression: =CountRows() = 0 回答2: Found the answer on my own, it's pretty

How do I best display CheckBoxes in SQL Server Reporting Services?

风流意气都作罢 提交于 2019-12-02 20:15:21
One of the many quirks of Reporting Services we've run across is the complete and utter lack of a CheckBox control or even something remotely similar. We have a form that should appear automatically filled out based on information pulled from a database. We have several bit datatype fields. Printing out "True" or "False" just looks silly, as this is supposed to look like a form that has been auto-filled out, so we want to have a series of checkboxes and labels that are either checked or unchecked. We are running SSRS 2005 but I'm not aware of SSRS 2008 having added a CheckBox control. Even if

How to use Floor/Ceiling in a ReportModel expression field?

自作多情 提交于 2019-12-02 18:07:58
问题 I'm working in an SSRS 2005 Report Model Project . I want to create an expression field on a ReportModel that does the same as this C# method: private static int GetClosestWholeNumberToward0(double delta) { return (int) (delta > 0 ? Math.Ceiling(delta) : Math.Floor(delta)); } I tried this: IF(delta > 0, Ceiling(delta), Floor(delta)) But it seems that ReportModel expressions don't support the Ceiling or Floor functions. Is there a way to do this? Update : Due to changing requirements that

Displaying a field as a comma separated list in Reporting Services 2005?

本小妞迷上赌 提交于 2019-12-02 18:05:02
问题 See title. Basically, the data in this report is set up such that each value in Field A has multiple corresponding values in Field B, and I need to display Field B as a comma-separated list. According to the internets, this is totally easy via a combination of Join() and LookupSet() in 2008... but I'm on 2005. Anyone know how I can do this? 回答1: Here is my structure: CREATE TABLE [dbo].[Regional]( [State] [char](20) NULL, [Region] [char](10) NULL, [County] [char](20) NULL ) Here is my query:

SSRS: Convert decimal to hours and minutes

别说谁变了你拦得住时间么 提交于 2019-12-02 14:32:39
问题 I have a report where I want to display time in hours and minutes (17hrs 30 mins) The dataset returns this value in decimals (Eg 17.5) How would I convert this decimal to the format specified above (17hrs 30 mins). Is there some kind of built in function that can do this easily? 回答1: This works for your particular example: =Floor(Fields!MyValue.Value) & " hrs " & CInt((Fields!MyValue.Value - Floor(Fields!MyValue.Value)) * 60) & " mins" You may need to tweak for all possible scenarios but this

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

為{幸葍}努か 提交于 2019-12-02 13:20:06
问题 why this error comes? I am using windows authentication. But i am getting error Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' can any one help me in this how to solve this problem? 回答1: Most likely it means you're trying to connect from an impersonated context and you did not set up constrained delegation. See Manage Kerberos Authentication Issues in a Reporting Services Environment for details and troubleshooting. 回答2: First of all, I always prefer to use the 'impersonation' settings

How to use Floor/Ceiling in a ReportModel expression field?

六眼飞鱼酱① 提交于 2019-12-02 12:37:54
I'm working in an SSRS 2005 Report Model Project . I want to create an expression field on a ReportModel that does the same as this C# method: private static int GetClosestWholeNumberToward0(double delta) { return (int) (delta > 0 ? Math.Ceiling(delta) : Math.Floor(delta)); } I tried this: IF(delta > 0, Ceiling(delta), Floor(delta)) But it seems that ReportModel expressions don't support the Ceiling or Floor functions. Is there a way to do this? Update : Due to changing requirements that added additional complexity to this report, I'm going to start over with the Report Designer in Visual

Displaying a field as a comma separated list in Reporting Services 2005?

半腔热情 提交于 2019-12-02 10:55:51
See title. Basically, the data in this report is set up such that each value in Field A has multiple corresponding values in Field B, and I need to display Field B as a comma-separated list. According to the internets, this is totally easy via a combination of Join() and LookupSet() in 2008... but I'm on 2005. Anyone know how I can do this? Here is my structure: CREATE TABLE [dbo].[Regional]( [State] [char](20) NULL, [Region] [char](10) NULL, [County] [char](20) NULL ) Here is my query: SELECT state, region, (SELECT Rtrim(county) + ',' FROM regional b WHERE a.state = b.state AND a.region = b