reporting-services

SSRS ignores sort in a recursive hierarchy

老子叫甜甜 提交于 2019-12-12 03:07:44
问题 I've got a SSRS report that builds a recursive hierarchy using the Recursive Parent property. I need to sort by a field in the dataset (not interactive sorting, just plain sorting). I've set it on the Details group but Reporting Services won't do the sort. If I remove the recursive grouping and return it to a flat dataset, the sort works as expected, so I know it is because of the hierarchy. Anyone else ever run into this? 回答1: Sorting within a recursive hierarchy will only affect the order

Retrieve Value in SQL

北城余情 提交于 2019-12-12 03:05:36
问题 I have to create a SSRS Report to retrieve the value according to this condition: A,B,C,D,E are Five users think, A as Junior developer B as developer C as senior developer D as project manager E as Sr project manager A reports to B B reports to C C reports to D D reports to E Then: when A logs in he can only see his records when B logs in he can see the records for A,B and not able to see the C,D and E records when C logs in he can see the records for A,B,C and not able to see the D and E

SSRS WindowsIdentity.GetCurrent() giving me NT AUTHORITY\NETWORK SERVICE

坚强是说给别人听的谎言 提交于 2019-12-12 02:59:29
问题 I have custom code inside of a SSRS report that needs to get the current user. e.g. Dim myPrincipal As New System.Security.Principal.WindowsPrincipal (System.Security.Principal.WindowsIdentity.GetCurrent()) I would have expected GetCurrent() to return the principal of the user that was accessing the report; however, it gives me the principal of "NT AUTHORITY\NETWORK SERVICE". Does anyone know how to get ReportServer to run as the user running the report? I checked both web.config, and they

How to run a scheduled task to stop and start SSRS service with elevated permissions?

被刻印的时光 ゝ 提交于 2019-12-12 02:57:38
问题 I have this SSRS latency issues on my site. So I have googled it and found out that it is the common issues for so many people. Here it is: I have created a powershell script as follows: Stop-Service "SQL Server Reporting Services (MSSQLSERVER)" Start-Service "SQL Server Reporting Services (MSSQLSERVER)" $wc = New-Object system.net.webClient $cred = [System.Net.CredentialCache]::DefaultNetworkCredentials $wc.Credentials = $cred $src = $wc.DownloadString("http://example.com/Reports/Pages

Hide subreport on query result

≡放荡痞女 提交于 2019-12-12 02:54:58
问题 I'm developing an SSRS report containing several sub-reports. The report gets a parameter and uses it to query an object ID which is used as parameter for all sub-reports. The problem ist that in some cases the query returns no object ID (dataset has no data records). In this case I have to hide the sub-reports and show a text message. I don't know how to set the Show/Hide condition for the sub-reports. I could use a variable for that but I don't know how to set the variable value based on

How to change order of the table displays (page number) to keep the tables sequential

Deadly 提交于 2019-12-12 02:54:22
问题 I have a report in ssrs 2008, which includes 2 tables and 1 rectangle to keep them in separated pages like: Table 1 rectangle (it is blank - page break before is selected from its properties) Table 2 Both the tables are grouped by NAME, in their Row Group. Therefore, when I run the report the output is like: ------Page 1----------- Table 1 (Name:John) ------Page 2----------- Table 2 (Name: John) ------Page 3----------- Table 1 (Name: Mike) ------Page 4----------- Table 2 (Name: Mike) -----

Why does my SQL Server Reporting Service (SSRS) Report 'appear' to re-sort the data?

巧了我就是萌 提交于 2019-12-12 02:52:44
问题 The SSRS report in question is a client report file (.rdlc) and is created by 1) Querying the database and applying the returned populated System.Data.DataTable object to the report; 2) Calling the Export method on the report object in-order to create a final PDF file. Problem: The query sorts the data in one way, and the report sorts it in another! I know that an SSRS report does not support sorting, as that's up to the query, hence my confusion! I have used debug breaks to view the

Add sum of columns to chart SSRS

假装没事ソ 提交于 2019-12-12 02:50:56
问题 I have searched all over and cannot seem to find a definitive answer for this issue! I have a simple chat here grouped on the 5 categories below detailing the Sums of their SqFt. I want to add a Total Column to the graph ~(Total = 11M sqft). Can this only be done in SQL? It is a bit puzzling for me to do this because the query already sums the sqft for each row (as a nested query). I would need to Sum(sum(sqft)) in order to produce what I want, however, I dont believe this will work on the

ssrs chart lines not connecting

放肆的年华 提交于 2019-12-12 02:47:10
问题 I have an SSRS Line chart which plots supply points with square feet on the X axis and Price on the Y axis. Right now I don't really care about making it pretty just getting the lines to show up correctly. I am plotting the points and grouping by Subdivision/Builder. So for example Subdivision A has builders Y and Z. I want to show different colors and lines for Subdivision A builder Y verses Subdivision A Builder Z. The problem is that the lines are not connecting when a point for another

could not select subreport - .rdlc - VS 2010

橙三吉。 提交于 2019-12-12 02:46:36
问题 I had created many reports with VS 2008. Now starting with VS 2010 for new requirement. Please note I am using .rdlc report I could add subreport control to the report but could not select the available reports. There is no browse button or a dropdown to choose the available .rdlc report. When I manually type the report name, the reportviewer doesnt show up any subreport. I dont see any error message on the 'Output' window either. How do I use subreport with VS 2010? Am I missing anything?