reporting-services

SSRS 2008 R2, Farm - Load Balanced and HTTP status 401: Unauthorized

谁都会走 提交于 2019-12-06 06:39:53
I have SQL Server Reporting services 2008 R2 environment in my Company. 2 servers Windows 2008 R2: PRERPSW01 and PRERPSW02 , in domain DOMAIN_Company NLB name: PRERPS IPs address ( I get by ping command): PRERPSW01 192.168.110.41 prerps 192.168.90.92 hosts file in PRERPSW01 server 192.168.110.41 prerps In PRERPSW01 and PRERPSW02 servers, there is this configuration: Config Report Server: C:\Program Files\Microsoft SQL Server\MSRS10_50.REPORTING\Reporting Services\ReportServer\rsreportserver.config HostName: PRERPS. UrlRoot: http://PRERPS/ReportServer In PRERPSW01 , I use credentials PRERPSW01

SSRS Line Chart Dynamic Y Axis

ぃ、小莉子 提交于 2019-12-06 06:29:22
问题 I have a line chart where the Y value is set to =CountRows() and I have a Category Group which groups on =CDate(Fields!END_MONTH_NB.Value) I am trying to set the interval of the Y axis dynamically such that fractions do not appear when the range is too small (see below). I tried setting the interval expression to =iif(CountRows() <= 5, 1, "Auto") which works fine if the total number of rows is less than or equal to 5, but what I really need is the maximum that CountRows() will return in the

SSRS - Look up field in dataset that is not part of report

半腔热情 提交于 2019-12-06 06:03:21
I have an ID column in a table in my Reporting Services report. I want to title each page of my report based on a corresponding name field. When I try to create an expression for the group-level PageName property, I see that there is a Lookup() function in SSRS. The example given in the description looks like this: =Lookup(Fields!SaleProdId.Value, Fields!ProductID.Value, Fields!Name.Value, "Product") The problem is that these fields are presumably in the same dataset used to create the report table. In my case, however, the name field is in another dataset of my project. Is there a way to span

Generating a MySQL hourly breakdown from current timestamp

白昼怎懂夜的黑 提交于 2019-12-06 05:54:39
I'm afraid this is probably a very embarrassingly easy question - but my mind is just completely stuck at this hour. I have a table that stores the number of activities carried out by different people, and the time it took place in. I want to create a report that accepts the person's name as a parameter, and show the number of activities per hour for that person during each of the previous 24 hours starting from current timestamp ( now() ). Right now, SELECT hour(TimeStamp), activities FROM tbl1 WHERE timestamp >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Name = ? GROUP BY hour(timestamp) only

Freeze column header while scrolling

白昼怎懂夜的黑 提交于 2019-12-06 05:29:50
I want freeze all column headers while scrolling down. Also, I want to freeze the first four columns with data when I scroll vertically. For the second part, I used the FIXED data property for the first four columns. It's working perfectly. How do I freeze all column headers when I scroll downwards? I am using SSRS 2005. Rana_kgec In order to make the column header row repeat on each page, please refer to the steps below: Select the Tablix. In the grouping pane, click on the small triangle and select "Advanced Mode" to show static members. In the row group hierarchy, select the corresponding

Trying to Get Rid of White Space in SSRS Report

寵の児 提交于 2019-12-06 05:26:56
I have a Report where I need to Hide Duplicates but unfortunately I now have white space in the Returned Data where the Duplicate Records used to be. How do I remedy this so my Report doesn't look so unprofessional? I have searched the internet and found answers for hiding rows where there is no data, but in my report there is data that I don't want to show. I would just take it out of the Query but the way the Tables are set up that is not an option. EDIT I am working with a Tablix, there is no ConsumeContainerWhitespace property that I have been able to find. this is not a case of an extra

Display blank value (“”) as date in SSRS

旧巷老猫 提交于 2019-12-06 05:25:37
I have the column DiscontinuedDate with either a datetime or a blank value. I used the expression FormatDateTime(Fields!DiscontinuedDate.Value, DateFormat.ShortDate) To show the date time as just a date but then when the value is blank it shows as an error with the following message "Conversion from string "" to type 'Date' is not valid." So i've been trying to use an IIF expression like the below: =IIF(Fields!DiscontinuedDate.Value is "", "", FormatDateTime(Fields!DiscontinuedDate.Value, DateFormat.ShortDate)) I've tried a few variations but they all bring back the same error. Any ideas?

SSRS: Report loading external images, image not found, can I hide the image control

拈花ヽ惹草 提交于 2019-12-06 04:07:57
问题 My SSRS report loads logo images for each customer from a customer number specific folder on the report server. I write an expression, to form my URL to the image based on th customer number. ..."http://localhost/images/" + iCustomerNumber.ToString() + "/logo.gif" I am able to get this working, but the problem I face is, when a particular customer doesn't has an image, then my report shows a red X mark in place of the logo. In this case, I expect to hide the image control itself. Any thoughts

How can I use a ReportViewer control with Razor?

爱⌒轻易说出口 提交于 2019-12-06 03:59:49
问题 I've seen many people saying to use an iframe or a new page to display a ReportViewer control. Is there a way to display the control inline with the rest of my page without using an iframe? 回答1: You can use .ascx user controls as partial views with Razor if they inherit from System.Web.Mvc.ViewUserControl . In this instance, you can create an ASCX that contains your ReportViewer control and the requisite ScriptManager in your View\Controller folder: <%@ Control Language="C#" AutoEventWireup=

SSRS multiple data sources

╄→尐↘猪︶ㄣ 提交于 2019-12-06 03:51:03
问题 I am using SSRS 2008 to create a report. Is it possible to create a report from multiple data sources? Thanks. 回答1: With SQL Server Reporting Services 2008 R2 you can use the lookup functions to lookup a piece of data from a second dataset: http://blog.datainspirations.com/2010/03/19/sql-server-2008-r2-reporting-services-look-up-look-down-look-all-around-part-i/ Very handy. From older versions of SSRS, you can create a subreport that occupies a cell in a table: the subreport can be called