ssrs-2012

Formatting Datetime in SSRS Expression

陌路散爱 提交于 2019-12-24 14:17:17
问题 Part of my query is like so: SELECT * FROM TableA WHERE ColumnA >= DATEADD(DAY, - 30, GETDATE()) With the expression at the where clause above, you can pull a rolling 30 days data without having to supply values. Now users of the report want to see it represented like: 2nd April – 1st May when the report is ran. Knowing that I have no parameters as the requirement is to not use parameters, how do I reference ">= DATEADD(DAY, - 30, GETDATE())" to reflect the start date and the end date in the

SSRS -Image not rendering on HTML 4.0 Report(Unauthorization )

无人久伴 提交于 2019-12-24 12:17:35
问题 I am working on SSRS report. I am accessing report using web services (using web refrences) I am using ReportExecutionService class to render report in the html 4.0 format and finaly I attach rendered HTML to my page DIV. Report is rendering very fine in HTML format but the images on that is not rendering properly because of missing authentication for images for that I just replace the src attribute of the img tag in the response returned from the SSRS report execution service with the url to

Is there a way to add a blank row to an SSRS dataset based on parameter?

泄露秘密 提交于 2019-12-24 07:34:50
问题 I have an SSRS report that prints address labels, 30 to a page, in 3 columns. I've created the report similar to the instructions found here Rarely do I have to print exactly 30 labels. So, to conserve paper and money, I would like to add a parameter to this report with numbers 1-30 to decide which location on the page to begin printing. If I had already printed 16 labels on a page, I could then select 17 in the parameter and my results would begin printing in the 17th label on the page. If I

How to find invalid Char in a SQL table

自闭症网瘾萝莉.ら 提交于 2019-12-24 06:41:57
问题 This has been a major headache for the last couple of weeks. I have a largish table (165 columns x 11000+ rows). In this table, there are several comment columns that are set to varchar(max) . There is one in particular that keeps getting invalid characters pasted into it by various users. This causes the reports in SSRS to fail. I then have to go and find these invalid characters and remove them. This has been a very painstaking time-consuming task. What I would like to do is find a way to

SSRS Export to pipe delimited file loose its headers

可紊 提交于 2019-12-24 06:38:44
问题 A team I work with has created a report in SSRS that they export to a .txt file for me to upload into SQL using SSIS. This issue is that there are no column headers. I ran the report in report builder and the headers are there until I export to txt. They are there in excel but we need it as a csv. Has anyone else encountered this and if so how did you resolve it? 回答1: For XML and CSV there are properties to control export behaviour, if the result is different from what you expected

How to Display Only 1 Value Label in SSRS 2012 Calculated/Derived Series?

偶尔善良 提交于 2019-12-24 06:13:53
问题 I have been using SSRS 2012 (Sql Server Reporting Services) with SQL Server Report Builder 3.0 (11.0.2100.60) to create Column charts that display columns for each day/week/month and display a trend line based on the mean across all days/weeks/months. However, although the calculated series reflects only 1 value (the mean across all days/weeks/months), value labels appear on the chart displaying the single mean value for each day/week/month - that is, 3 days will result in 3 value labels for

SSRS Reportviewer - 401 Unauthorized

孤街醉人 提交于 2019-12-24 01:47:26
问题 We are moving SQL Server Reports from a SQL Server 2008 (SP3) machine to a SQL 2012 (SP1) machine. The reports run fine in report manager (ie https://SQLRep2012/Reports) However, the ASP.net application returns "The request failed with HTTP status 401: Unauthorized." I know the user has rights because I am testing it with an admin account with all network/SQL server rights. Find the code below... using System; using System.Data; using System.Configuration; using System.Collections; using

Dynamically store and send SSRS reports as PDF with C#

浪子不回头ぞ 提交于 2019-12-24 01:42:11
问题 I have a report in SSRS that takes as a parameter a SalesRepCode and Email to generate a PDF receipt. It's working as it should be if I'm using the Report Viewer. With C#, I'd like to automatically generate a PDF for each SalesRep that exists, once the PDF is rendered, I'd like to store it on a folder and then send it as an email attachment. I have looked at the MSDN documentation of the ReportingService2005 Class, but this refers to the 2005 version, and I'm using SSRS 2012 and I still

SSRS Selective Page Break

自作多情 提交于 2019-12-23 22:20:04
问题 I'm having some formatting issues in SSRS with a current report I'm working on concerning property records. My report is built with 6 tablixes aligned in a landscape view meant to remain in a specific layout for potential printing of the report. The first Tablix contains general information about the property in question and the owner. This information will be completely static and should remain the same. The second Tablix is the problem. This Tablix is formatted to pull data from a stored

Add alternating row color to SSRS Matrix report with page splits

社会主义新天地 提交于 2019-12-23 04:28:22
问题 I’ve got a Matrix with multiple page splits for each product group. I’m using the below expression to get alternating row color for each product group. The problem is that it works as expected only on page 1. Other pages (i.e page 2) bring back undesired results as per the below screenshot: Expression: =iif(RunningValue(Fields!CurrentIntroducerManager.Value.ToString,CountDistinct,Nothing) Mod 2,"Gainsboro", "White") 回答1: I've had issues with using Running Value occasionally and just use the