reporting-services

How do you reference a field in the Embedded Code of an SSRS report

≯℡__Kan透↙ 提交于 2019-12-10 17:13:47
问题 Is there a proper way to reference the fields of a ssrs report from the embedded code of an ssrs report? When I try to use Fields!Program.Value I get the following error -- There is an error on line 3 of custom code: [BC30469] Reference to a non-shared member requires an object reference. Upon googling I found you could reference the Parameters of a report by prepending Report. at the beginning. So I tried this Report.Fields.Program.Value . That results in the following error... There is an

SSRS: Custom bar width between multi-level categories

落爺英雄遲暮 提交于 2019-12-10 16:58:29
问题 I have a bar chart with multiple category groups and I need to increase the spacing between the first level category group, that is, where the blue arrow points to. I want to change this: Into this: Thanks in advance. 回答1: As far as I know, there is no way to adjust the spacing between self-imposed groups of bars. However, there is a trick to get the desired affect. All you have to do is trick SSRS. In your query, you'll need to create empty bars with no labels. Without knowing how your query

Change page layout in the middle of report (SSRS)

守給你的承諾、 提交于 2019-12-10 16:38:19
问题 Hei, I have a main report with Portrait layout, but the main report contains subreports and some of subreports needs to be in Landscape layout. Is it possible to change main report layout so that it shows some subreports as lanscape and some in portrait? Thanks a lot! 回答1: I'm sorry, I don't think this is possible, at least not in SSRS 2008. From the subreports section at the end of this Rendering Report Items MSDN article: Subreports can grow to the size of the body defined in the .rdl file

Report Builder: Can I link to a specific part of a report?

自作多情 提交于 2019-12-10 16:37:49
问题 I would like to link to a specific section of a report from another report. A quick search on the internet didn't give me any suggestions, so I thought I would ask you smart folks here ;-). I'm really looking for something like anchors in HTML but for a report. 回答1: If you know already the page of the report you want to jump, then instead of the action "Go to report" I think you should use "Go to URL" and in the expression field insert something like: "http://myrsserver/reportserver?http:/

Time difference between dateTime fields SSRS

不想你离开。 提交于 2019-12-10 16:12:31
问题 I have two datetime fields and I need to show the difference between them. I've used this expression to calculate it: =DateDiff("n", Fields!hra_atncion.Value, Fields!fcha_incio.Value) The result column should be on HH:mm , but the result is a Long expression type. Something like 428011156 Any answer will be apreciated! UPDATE 21/11/2013 How I obtain the time difference in minutes between 12-11-2013 20:00 and 14-11-2013 08:00 ? 回答1: I think, you should try this expression: =Datediff("h",Fields

sorting string numeric values in SSRS 2008

大憨熊 提交于 2019-12-10 16:11:58
问题 I have a varchar field (i am grouping on) in a dataset that returns a list of values : 20, 25, 40, 100, 110, 'N/A'.. I want the "numeric" values sorted from low to high : i.e : 20, 25...110, 'N/A' the problem is that the A>Z sorting in the grouping gives out the following output : 100, 110, 25, ..., N/A I cannot convert to numeric datatype since there are string values.. Does anyone have a solution please ? Thank you in advance Jam 回答1: There are several solutions you can implement here. I'll

Cannot resolve the collation conflict

坚强是说给别人听的谎言 提交于 2019-12-10 15:51:56
问题 I am getting the following error message. Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. I only get it when I place this code below in my WHERE clause. WHERE Region IN (SELECT Token FROM dbo.getParmsFromString(@Region)) Now @Region contains all the values from my multi-select fields from SSRS. Below is the code for the function that is used. CREATE FUNCTION [dbo].[getParmsFromString] (@String VARCHAR(MAX))

SSRS 2008 Export to Microsoft Word does not include headers and footers

六眼飞鱼酱① 提交于 2019-12-10 15:48:19
问题 I have a report, which was recently converted from SSRS2005 to SSRS2208. The report header has a background, which is calculated depending on the page number. In the report footer there is an image and two text boxes, also calculated depending on page number. The report preview in the Business Intelligence Development Studio displays correctly, exporting to PDF also works correctly. However, when exporting to Microsoft Word the header and footers disappear and page margins increase by about 1

Expression in SSRS not working as expected

≡放荡痞女 提交于 2019-12-10 15:12:21
问题 I have an SSRS report which I want to sum values of a field, but only if the value of another field is equal to 1, as I have made the report output a row number for each row. Bascially, I'm trying to sum the distinct values to come up with a total. Screenshot below. I'm getting an error for orders with more than 1 item. My expression used to calculate the Ship Cost (red text) is as follows =SUM(IIF(Fields!RowNumber.Value = 1, Fields!WEIGHT.Value, 0)) But I'm getting the #Error. The cell that

Textbox Formatting In SSRS 2008 - Break Line

巧了我就是萌 提交于 2019-12-10 15:05:34
问题 So, say I have the following string THIS IS STUFF (MORE STUFF) How would I get the string to format as such in a textbox in SSRS? THIS IS STUFF (MORE STUFF) This data is pulled from a single field in a query and I will not be able to manually inject a break line. Also, sometimes the (More Stuff) is not in the field. Extra examples: STUFF AND THINGS THINGS (STUFF) THINGS AND STUFF (MORE STUFF) 回答1: You need to insert a line break into the string, i.e. set the textbox expression as something