ssrs-2008

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

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

Enable Caching for all reports in SSRS Report Server

旧巷老猫 提交于 2019-12-08 02:43:18
问题 I have more than 100 reports in SSRS report server. I need to enable caching for all of those. Right now I am enabling caching through the report manager for each and every report. Can we add caching in any of the report servers config files? So that we can enable caching for all reports at a single place. Any help will be appreciated Thanks AJ 回答1: Below is the script that I used to enable caching in minutes on a list of reports. Save it as setreportscaching.rss and then run it from the

Trying to Get Rid of White Space in SSRS Report

若如初见. 提交于 2019-12-08 02:08:12
问题 I have a Report where I need to Hide Duplicates but unfortunately I now have white space in the Returned Data where the Duplicate Records used to be. How do I remedy this so my Report doesn't look so unprofessional? I have searched the internet and found answers for hiding rows where there is no data, but in my report there is data that I don't want to show. I would just take it out of the Query but the way the Tables are set up that is not an option. EDIT I am working with a Tablix, there is

Freeze column header while scrolling

笑着哭i 提交于 2019-12-07 21:45:02
问题 I want freeze all column headers while scrolling down. Also, I want to freeze the first four columns with data when I scroll vertically. For the second part, I used the FIXED data property for the first four columns. It's working perfectly. How do I freeze all column headers when I scroll downwards? I am using SSRS 2005. 回答1: In order to make the column header row repeat on each page, please refer to the steps below: Select the Tablix. In the grouping pane, click on the small triangle and

How to create an RDL using the report class generated from the RDL schema

我们两清 提交于 2019-12-07 17:58:26
问题 I have a project where we are creating a custom report generator for SSRS 2008R2. This project allows the user to select fields from a database and then create and store the RDL on the report server. For some of the initial proof of concept attempts we have been using XMLText writer to generate the XML file. While this works this seems to be very cumbersome and I don't have a lot of confidence in how the schema is being generated as being 100% bulletproof. A second attempt is actually using

SSRS: Am I hallucinating?

给你一囗甜甜゛ 提交于 2019-12-07 16:47:18
问题 The solution at SSRS - How to build a simple multi-column report? says there is a layout tab under the report properties. Ive googled the subject to death and the same menu is referred to in multiple places. I can't find a Layout Tab or a Columns property anywhere. Have I gone round the bend? 回答1: Regarding the Columns property, you've clicked on the Body of the report which brings up the body properties. To view the Columns property, click outside the Body of the report on the yellowish area

From C# when calling SSRS report only main report shows data sub report giving error

橙三吉。 提交于 2019-12-07 15:59:06
问题 I developed an SSRS report having a main and 3 subreport. I am calling this report from C#. I only know how to bind the main rdlc with the data set. I use the code below for this SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlcomm); dataAdapter.Fill(dataset); this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + "\\sale_dept.rdl"; this.reportViewer1.LocalReport.DataSources.Clear(); this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms

SQL - combine consecutive date rows based on column

百般思念 提交于 2019-12-07 13:00:08
问题 Let's say I have the following SQL result BegDate | EndDate | quanitty 1/1/2014 1/31/2014 1 2/1/2014 2/28/2014 1 3/1/2014 3/31/2014 2 4/1/2014 4/30/2014 4 5/1/2014 5/31/2014 4 6/1/2014 6/30/2014 4 7/1/2014 7/31/2014 2 8/1/2014 8/30/2014 2 I need to group all months with the same quantity into one row so the result should be BegDate | EndDate | quanitty 1/1/2014 2/28/2014 1 3/1/2014 3/31/2014 2 4/1/2014 6/30/2014 4 7/1/2014 8/30/2014 2 I've searched around stackoverflow and found similar posts