reporting-services

Generating report from rdlc xml string

拟墨画扇 提交于 2021-02-07 08:17:47
问题 I'm facing an issue when generating reports. I should generate report dynamically using all data from database for it (source name and rdlc report that stores as xml string) So I solved problem next way: Create local rdlc file with report xml string; Set path to the file; var rViewer = new ReportViewer(); rViewer.LocalReport.ReportPath = @"Path to the generated xml rdlc file"; var dataSource = new ReportDataSource("DataSourceName", data); rViewer.LocalReport.DataSources.Add(dataSource); Could

How to automate tests for reports in SSRS

断了今生、忘了曾经 提交于 2021-02-06 10:21:34
问题 My current project uses SSRS as the reporting engine. I have the report executing a text command with about 10 variables passed to it. I have been looking for a solution on how to unit test (acceptance or integration, whatever, just some automation) to an SSRS report project. I thought about using this method: Move the SQL text command to a stored procedure Create a Reports.Tests project Create a project_tests database and point the connection string to this database Set up my unit test

How to automate tests for reports in SSRS

…衆ロ難τιáo~ 提交于 2021-02-06 10:21:17
问题 My current project uses SSRS as the reporting engine. I have the report executing a text command with about 10 variables passed to it. I have been looking for a solution on how to unit test (acceptance or integration, whatever, just some automation) to an SSRS report project. I thought about using this method: Move the SQL text command to a stored procedure Create a Reports.Tests project Create a project_tests database and point the connection string to this database Set up my unit test

Using a comma-separated parameter in an IN clause

左心房为你撑大大i 提交于 2021-02-04 15:10:42
问题 I have 'param1, param2, parma3' coming from SSRS to a stored procedure as a varchar parameter: I need to use it in a query's IN clause but then need to change its format like this first: select * from table1 where col1 in('param1', 'param2', 'param3') What is the best way to reformat the parameter without creating functions and parameter tables? 回答1: Try this one, Just need to add commas at the beginning and at the end of @params string. Declare @params varchar(100) Set @params = ',param1

Microsoft dynamics Mediaset Datatype and SSRS

只愿长相守 提交于 2021-01-29 21:48:56
问题 I have a table called Item in Microsot Dynamics (NAV). One of the requirement is to display a picture that is attached to the item. The SQL datatype of this field is "uniqueidentifier". However, when looking at the development environment for dynamics, I see the following: How do I retrieve and show this image in an SSRS report please? 回答1: For any one looking at this. Navision Dynamics stores images as Mediasets. These references are stored in the [Tenant Media Set] table and the actual

SSRS Show Base64 String or Byte Array From URL as Image

删除回忆录丶 提交于 2021-01-29 15:20:41
问题 I have a wevservice that returns an image as a Base64 string, or as a byte array, that I need to show as an image in SSRS. Not sure how to do that. I tried using an expression in the image properties: =System.Convert.FromBase64String("http://localhost:5460/api/Report/GetImage") but that does not work. How do I get the string or array from the URL, then display it as an image? I have also tried a Code block, but when I try Dim hwr As System.Net.HttpWebRequest hwr = System.Net.WebRequest.Create

How to set dynamic axis unit in SSRS Reports?

和自甴很熟 提交于 2021-01-29 11:12:29
问题 I have a dataset that contains data in below format: The graph you see on the right is a Line chart that is being used in SSRS report. This is the sample data you see in here below. The graph in SSRS report contains month wise data (as oppose to day wise here) I need to set the axis dynamically (Y-Axis numbers) so that when the numbers get changed the said graph is also updated without updating the Y-Axis manually. I know I can set the vertical axis property of line chart and then go to

SSRS Subscriptions table and ExecutionLog3 View

依然范特西╮ 提交于 2021-01-29 06:42:26
问题 We have many reports that have multiple subscriptions and I want to be able to monitor the executions by querying the Subscriptions table and ExecutionLog3 View. There doesn't seem to be an obvious relationship between the table and view. One particular report has one data driven subscription. The report is executed multiple times with a different parameter value each time. I particularly want to monitor the progress of this subscription. I want to be able to identify when it fails, when, and

Unable to figure out accurate query to get timestamps for my report…for each user

为君一笑 提交于 2021-01-29 05:43:55
问题 I am trying to write a report based on data of users logging into a session. I need to be able to get a full session time from when the first person joins the meeting to when the last person leaves. When someone joins a meeting it is logged as, "Initialize-Load Video chat Window" There are 2 ways to close the meeting but one way is being logged. - There is an "End Chat" button that the user can use and that is logged as, "Video Chat-End Chat" - If the user does not use that button and just

SSRS Color Gradient

佐手、 提交于 2021-01-29 05:29:13
问题 I've been able to figure out how to make certain values the certain colors I would like. However, I'd really like to be able to create a color gradient so that it's more of a gradual change between each value. 0 = white from white to green between 1 and 15, gradient from green to yellow between 16 and 25, and gradient from yellow to red between 26 and 35, anything above 35 is red. This is the code I have in the background fill expression: =SWITCH( (Sum(Fields!Total_Transaction_Count.Value) /