ssrs-2008

SSRS Optional Parameters

大城市里の小女人 提交于 2019-12-11 22:16:28
问题 I have run into a couple situations where I have a single report, but the user requires two ways to run it. For example, they want to either enter an employee id and pull up a single employee record, or they want to enter the company and department, or multiple companies and departments, and return employee records for all selected departments & comapnies. I know how to do the cascading parameter thing, so I can do either way, but I dont want to have 2 reports, I would like to have one report

SSRS - Passing one date parameter and using it as between

限于喜欢 提交于 2019-12-11 21:22:12
问题 Hi I am workikg with an SSRS report wherein i am passing a date from one report to anothere report with this sample format 7/6/2013, my problem is iam using this to the second report like this: select recordnumber, employeename, empolyeeID, team, step, QA, convert(char(10), hireDate, 120) as hireDate, EmpStatus,Comments, convert(char(10), AssignDate, 120) as AssignDate from tblQMRoster tr inner join tblQATeamMaster tm On tr.QAMemberID = tm.QAMemberID inner join tblStepMaster sm ON sm.stepDesc

SSRS Report parameters - Textarea instead of Textbox

那年仲夏 提交于 2019-12-11 19:56:36
问题 Does anyone know if its possible to create a parameter in SSRS that will display a Textarea instead of a Texbox and let the user type in a few paragraphs of text, including carriage returns? I've a requirement to create a report that will end up as data with a cover letter. A section of the cover letter needs to have a block of text, which the user can specify when setting the parameters. I can create a 'text' parameter which displays a Textbox, but that does not accept carriage returns. I

Handle NULL values in SQL Server Reporting Services

我与影子孤独终老i 提交于 2019-12-11 19:15:26
问题 I have developed one report using SSRS Report Builder. The report contains several parameters in which one of the parameter contains NULL values apart from the values that it fetches from the database. Now when I select NON-NULL values from that parameter the report runs fine because I'm using IN Clause (as the parameter values are multi-select). But when I select NULL (and not any other values) from that parameter, the IN clause doesn't works as IN doesn't take NULL. Hence what/how should I

Link Subreport to matrix

爷,独闯天下 提交于 2019-12-11 19:07:41
问题 I have a matrix like below. years on columns and countries on rows. Countries 2001 2002 US 100 400 UK 200 290 IR 300 89 I have a requirement of creating a subreport which shows Invoice details. When I click 100 (US-1002) on my main report I have to show all the 100 Invoices. I tried this way: Since I am doing count for InvoiceID in matrix, I tried using Join(Fields!InvoiceID,", ") expression on the data test box action(Go to report). On the other side I created a subreport with multivalue

Calculate an SSRS Report parameter based on another

本小妞迷上赌 提交于 2019-12-11 18:59:43
问题 I am looking to create an SSRS 2008 report which will have three report parameters. The first parameter will be a date that the user will enter a value in. The second parameter, which the user will also enter a value in, will be a field taking a number. Based on these two values, the third parameter, another date, should be calculated as the number of days (second parameter) before the date entered in the first parameter. The third parameter will be used to generate the report. (The reason

In SSRS 2008, how do pass variables from one report to another?

谁说我不能喝 提交于 2019-12-11 18:43:53
问题 How do I, pass a variable from one to another report when I launch a report through the Action Property of an Object? And how do I use the received string variable as the contents of a dataset or at least the contents of a defined variable in a dataset. Also, how would I be able to use that variable as text in a text box? Finally, how would I pass multiple variables? 回答1: Passing parameters via URL If you are working with Report parameters, you can pass parameters to a report via URL, as

Reporting Services - translating labels into different languages

南楼画角 提交于 2019-12-11 18:41:18
问题 I'm finishing up my reports in my SQL Server 2008 Reporting Services project, and as one of the last steps, I need to make things translateable. Since I have a bunch of reports, and they all share some identical labels, I decided to put all those labels I need to show into a SQL Server table, and I am surfacing that contents as a DataSet dsReportLabels in my reports. This DataSet basically contains two fields: LabelName is the name of the label (e.g. "Count of items"), and Caption contains

Hide a row in RDLC report without disabling the code execution

邮差的信 提交于 2019-12-11 18:39:57
问题 How could I hide a row in a .rdlc report without disabling the code execution for this row? 回答1: Use the Visibility.Hidden property. Click on the Detail row handle to select the entire detail row, expand the Visibility property and enter an expression in the Hidden property that will hide the row. For example, if you want to hide the row when MyField is zero, you'd enter: =IIF(Fields!MyField.Value = 0, True, False) 回答2: Use a table filter. The data will be extracted the filtered after

Get Sql Server Reporting Services report description in code

风流意气都作罢 提交于 2019-12-11 18:21:57
问题 I have an ASP.NET web page with a ReportViewer control that dynamically loads a report based on the URL and I want to set the DisplayName for the report from code as well. This name is used as the suggested file name whenever someone exports the report to a file. Now I'd like to use the report description (which is baked in the report file when it's deployed on Reporting Services) for that name but I don't find a way to retrieve that (other than parsing the XML. I guess this should be