reporting-services

Datasource for RDL reports with ReportViewer

折月煮酒 提交于 2019-12-08 05:11:31
问题 I have some RDL reports created with SQL Server BI Development Studio and now I need to render them using the ASP.NET Report Viewer. Even though my RDLs contain references to the SQL server and the SELECT query, it keeps saying I need to specify a datasource for the report. Is there a way to make the datasource from the RDL be used or do I have to pass a datasource to the report viewer via C# code? Thank you. 回答1: Did you verify the DataSourceReference element in your RDL? It needs the path

Merging multiple Rows in ssrs report to a single one

谁说胖子不能爱 提交于 2019-12-08 05:02:42
问题 I need help regarding SSRS Reporting my data is Coming from a Query and I also have added the Column Group Named as Subject Name Showing on the top of the Table() Also Added ApplicantID as Row Group and FName as a Row Group in the Report to fulfill my requirement that was just to show Since I am not Sure how many subjects a user can select its all decide on the run time so i did added the Subject name as a column group All the Subject records in a single row for a specific ApplicantId Instead

SSRS 2008 Excel Currency Cell Format

这一生的挚爱 提交于 2019-12-08 04:52:38
问题 I'm using SSRS 2008 and I have a financial report. I would like the dollar amounts in my table to be in currency or number format when exported to Excel. Currently they end up being text. I have trying a few things to see if its even possible. I removed the table header, didn't use the $ sign, and converted the field to decimal, but nothing seemed to work. The data in Excel always seems to be format as text. Any suggestions? 回答1: Make sure you are using the Format string "C" but the export to

Hidden dynamic matrix groups still take space in SSRS 2005

半城伤御伤魂 提交于 2019-12-08 04:43:07
问题 The Problem I am using dynamic matrix groups as in Dynamic Grouping from Chris Hays's Reporting Services Sleazy Hacks Weblog (which has some great stuff and is worth checking out, by the way). I have my row and column groups bound to two multi-value parameters and everything is working great, except for one thing. Even though I am suppressing unused groups from displaying, they are still taking up space. Here's what the report looks like now when I choose only one row group and one column

Print rdlc report without viewing print dialogue box

a 夏天 提交于 2019-12-08 04:32:14
问题 I have am writing a POS application, which requires to print invoice very often. I need to send it directly to printer instead of viewing the print dialogue. Using Reportviewer_renderingcomplete, I can avoid seeing the report but I do not know how to avoid seeing the print dialogue box and print report without user intervention? Thanks a lot. 回答1: Here is how you can do it: Dim m_currentPageIndex As Integer Private m_streams As IList(Of Stream) Dim report As New LocalReport() report

Naming of Sheets using Asp.net SSRS 2008 (RDLC) for export to Excel

不问归期 提交于 2019-12-08 04:03:25
I'm working on a VS 2008 asp.net webforms application in which it contains an existing RDLC (Client file, and NOT the RDL Server side file ). The problem is upon exporting to excel, all of the worksheets are not named properly, i.e. Sheet1, Sheet2, etc. I have found many examples on exporting data, on SQL Server 2008 R2 feature of RDL, however I am in need of a RDLC solution? Does anyone know about how to either "fix" this or do some sort of post processing to rename the tabs so the customer doesn't end up seeing Sheet1, Sheet2, Sheet3,etc.? Application is choosing the path of the RDLC file

SSRS - how to check if a row is toggled or visible?

随声附和 提交于 2019-12-08 03:59:22
问题 I have a drill-down report in SSRS 2008 and I want to do some conditional formatting on the main row. For example, if it's not toggled add a different background color and different border. I haven't been able to figure out how I can check if the current row is expanded or not using an expression. 回答1: There is a trick(check the result to see if it's ok for you. this solutions leaves a small space when the group is expanded) : Add an extra column at the left for expand collapse. Add a second

How to use Multiple result sets in Reporting Services

十年热恋 提交于 2019-12-08 03:54:47
问题 I have a stored procedure which returns multiple result sets similiar to the following: ALTER PROCEDURE sp_XXXX ( XXXXXX ) AS SET NOCOUNT ON SELECT XXXXXXX IF @@ROWCOUNT = 0 SELECT XXXXXXX RETURN I want my report to use the first result set if it has data or use the second one in case the first one is empty. Any help? 回答1: In the sproc "union all" your two result sets. If you need to tell them apart add a derived column indicating the original result set. select 'ds1' as dataset, * from

SSRS Line chart NULL VALUE - Horizontal Line

左心房为你撑大大i 提交于 2019-12-08 03:54:42
问题 I am hoping someone can help me. I have created an SSRS (2012) report plotting multiple series over time. The chart is shown above. Many of the non-connected points are easily 'joined up' by making the empty point value the same color and size as the line itself. I have demonstrated that with MC113. This is all fine - and I have found plenty of helpful information on the web to help me address this. The problem I am having is with the leading (and sometimes it is the lagging) horizontal line

How to deploy ssrs on local?

安稳与你 提交于 2019-12-08 02:58:22
问题 How do I deploy ssrs on my local machine? I am using ssrs 2005. 回答1: I'm not sure bout 2005 but in 2008, you right click on project -> properties and change the following: TargetDatasetFolder: /FolderName/DataSet TargetDataSourceFolder: /FolderName/DataSource TargetReportFolder: /FolderName TargetReportPartFolder: /FolderName TargetServerURL: http://localhost/MainFolderName (u can ommit the MainFolderName if you dont want it) Then you can right click on the project and click deploy and VOILA