reporting-services

How do I write an if else statement in Reporting Services expression language?

强颜欢笑 提交于 2019-12-04 03:34:19
I would like to write a Reporting Services "Expression" that basically behaves as the following (pseudo code)... if ([Fields!StateProvinceId.Value] == 1) { return "Ontario"; } else if ([Fields!StateProvinceId.Value] == 2) { return "Quebec"; } else if ([Fields!StateProvinceId.Value] == 3) { return "Manitoba"; } // ... // more cases same pattern I don't see this type of logic do I have to nest a bunch of IIF? =IIF(Fields!StateProvinceId.Value = 1, "Ontario", IIF(Fields!StateProvinceId.Value = 2, "Quebec", IFF(Fields!StateProvinceId.Value = 3, "Manitoba", "Unknown Province"))) Have you tried a

VS 2015 Native compiler return value -1073741511 on .rdlc files when building project

懵懂的女人 提交于 2019-12-04 03:21:35
问题 I got this error: rsUnexpectedCompilerError: An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741511’ ,when compiling rdlc 's on a new box on Visual Studio 2015 on a Windows 8.1 box for an existing project This happens on every existing r d lc file in the project that has an expression . I checked that. I have the latest sql server data tools (ssdt) installed. I also created a brand new console application with empty report with no expressions and

SSRS function with regex

半世苍凉 提交于 2019-12-04 03:04:26
I am creating a report using SSRS for a phone number field in my database as a string value. I need to format a string value in phone number format (555) 555-1212. If the value is null, display nothing. For example, a table in my database has a phone number column and some values are NULL. I got a regex that formats the phone number fine. =System.Text.RegularExpressions.Regex.Replace(Fields!Phone.Value, "(\d{3})[ -.] (\d{3})[ -.] (\d{4})","($1) $2-$3") However if I do this: =IIf(Fields!Phone.Value is nothing, "", System.Text.RegularExpressions.Regex.Replace(Fields!Phone.Value,"(\d{3})[ -.] (\d

SSRS Reports - force table to expand to bottom of page

自作多情 提交于 2019-12-04 02:56:53
I'm trying to create a invoice type report where i have a header, main body with a table (which includes a totals section) and footer. The problem im getting is, the table height in the main body depends on how many rows are returned from my SPROC, hence if there is not much data, the table will take up a small portion on the middle of the page with the "totals" and "disclaimer" ending nowhere near the bottom of the page (ideally, want to put it just above the footer). I have seen guides to get around this problem, with the general method to add blank (null) lines in the SPROC, forcing the

Unattended Execution Account in SSRS

一笑奈何 提交于 2019-12-04 02:51:27
Q1: why would I want to have an Unattended Execution Account? Q2: if I don't use an Unattended Execution Account, which account is used to run the reports? Q3: if i get the following error message when running a report: "The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad password". I understand that the Unattended Execution Account user name and/or password is wrong. But, where is that user

How to customize Selenium TestNG default report or create new HTML report?

隐身守侯 提交于 2019-12-04 02:24:00
问题 I tried ReportNG, but it is not updating the report now & I found that ReportNG is no more used from this answer. I want to create a test report/customize TestNG report to gave to development team. I used Hybrid Framework for creating the project and followed this tutorial. 回答1: Yes, you can customize the TestNG reports using Listeners and Reporters. Here is the link of documentation. It is not clear from a question what type of customization you want to do. But I want to suggest better

Dynamically create filename in SSRS 2008

落花浮王杯 提交于 2019-12-04 02:17:21
I have been asked a couple times to change the file name dynamically in SSRS 2008. Example: ReportName_201101.RDL. The 201101 represents the execution date. Can this be accomplished in SSRS 2008? If you mean the filename when you export the report and also happen to be pulling it from the ASP.NET ReportViewer, you can set the name through the DisplayName property. ReportViewerControl.ServerReport.DisplayName = "ReportName_201101"; or (if ProcessingMode is Local): ReportViewerControl.LocalReport.DisplayName = "ReportName_201101"; For pretty much all other cases, Alison is right. There is an MS

The print button doesn't appear in firefox

浪尽此生 提交于 2019-12-04 02:11:13
问题 Q: Why the print button doesn't appear in report viewer in the case of browsing through the Firefox ? How to show this button in this browser to print my report? 回答1: This is because the print button is an Active-X control and Active-X controls work only with Internet explorer For the rest of browsers export to pdf or excel and print from the application In case the entire report renders in one page, you can use the browser print button to print the report 来源: https://stackoverflow.com

SSRS 2008 Hidden Columns Should NOT Export to CSV

独自空忆成欢 提交于 2019-12-04 01:52:06
When I hide columns in SSRS they still appear in the CSV export. I have to hide columns, not the entire tablix. This is what I have tried already: The filters in the tablix hide rows not columns. The DataElementOutput per column can not be set using an expression. Format options such as expressions on visibility are ignored for CSV rendering methods. CSV rendering methods are essentially data flows, so you can suppress elements that you don't want to include in CSV files by changing the DataElementOutput from Auto, the default value, to NoOutput. There is a solution in the version of SRS 2008

SSRS Reports Versioning

折月煮酒 提交于 2019-12-04 01:50:34
I'm looking for a way to get versioning informations out of my SSRS reports. I have several environments and would like to be able to compare which report version is deployed on these environments. In SSIS this is very easy because each SSIS package gets a new version when it was modified and safed. Is there something similiar with the reports ? Dennis G Unfortunately there currently is no built-in functionality similar to a dll assembly version for RDL files. The only way to get some kind of version information is to query the last modified date of the RDL file on the server via C# or VB.Net.