reporting-services

XSLT on SSRS report

落花浮王杯 提交于 2019-12-06 03:45:55
问题 I want to translate an XML file with data like the following: <FlatData> <Details1_Collection> <Details1 Customer1="Customer" Total1="3" /> ... </Details1_Collection> </FlatData> The data I am interested in is the attributes and their values in each Details1 . The problem is that these attributes are not necessarily going to be the same in every XML file I want to translate, and I want a general purpose XSL that could handle such Details1 as these: <Details1 Customer1="Customer" Total1="3" />

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

纵饮孤独 提交于 2019-12-06 03:41:47
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 the generated class from the RDL as my object model. Where I am stuck here is there is almost zero

isnull in SSRS expressions

别说谁变了你拦得住时间么 提交于 2019-12-06 03:31:45
How to use this formula in ssrs-expression =NOT(isnull({Command.AAID})) or NOT(isnull({Command.HDomain})) or NOT(isnull({Command.Adomain})) Thanks. I think what you're trying to do is display data based on whether or not a field has data in it or not? You can always use an IIF statement with ISNOTHING. See below for the expression. =IIf(IsNothing(Field!Whatever),0,Field!Whatever) If that doesn't answer your question, let me know. So to convert Crystal formula to SSRS-Expression , You need to write expression like below, =IIF(Not(IsNothing(Field!AAID)) OR Not(IsNothing(Field!HDomain)) OR NOt

How to force a textbox to split, rather than move to a second page in SSRS 2005 (PDF Export)?

南笙酒味 提交于 2019-12-06 02:47:22
This question is a follow up to my original question , I've done a bit more reseach, i narrowed a problem down quite a bit. I've also uploaded a sample .rdl to illustrate the problem I've got the following report setup: a header (image in the body), two textboxes, and a footer. First textbox has a little bit of text, and second textbox has lots of text. Second textbox can fit on one page by itself, but won't fit on the page with my header and the first textbox. The problem is that for some reason, the second textbox in the report is unaware of other contents of that same report, and as long as

SSRS 2008 multi-line data displaying as one line in report

▼魔方 西西 提交于 2019-12-06 02:39:33
I have a report that is returning a one data field to a tablix control field. The data field contains multi-line information in the database. Example below. In SQL Server, "Dan Chief - Ceo - Indiana Office" "Dan Chief - " & vbcrlf & "Ceo" & " - Indiana Office" The vbcrlf's don't display in SQL Server but I have confirmed they are present by using instr() in SSRS. I want the data to display like this. I can remove the hyphens and spaces. Dan Chief Ceo Indiana Office But in the SSRS report it displays all on one line. I have the autogrow check box selected/on and still nothing. Any ideas are

How do I display formatted XML in a SSRS Report?

断了今生、忘了曾经 提交于 2019-12-06 02:30:29
I have a field in my dataset that contains an unformatted XML string, for example: <root><element><subelement>value</subelement></element></root> How do I "prettify" it and display it within a Tablix control? Like this: <root> <element> <subelement>value</subelement> </element> </root> This can be achieved by using embedded code in the report and using System.Xml.XmlTextWriter with XmlTextWriterSettings.Indent = true Open the Report Properties dialog and paste the following function in the Code tab: Public Function FormatXml(input As String) As String Dim doc As New System.Xml.XmlDocument()

How can I use the SSRS ReportViewer from VS 2008 in a VS2010 project?

我怕爱的太早我们不能终老 提交于 2019-12-06 02:03:03
I'm working on an ASP.NET MVC 2 / .NET 3.5 project which includes SSRS 2008 reports. After migrating to VS 2010 RC, the new web forms report viewer has been giving so much trouble that I'd like to use the old report viewer from VS 2008 again. Now I'm just wondering what would be the easiest way to do that. The report viewer is embedded in a Webforms ASPX file which is loaded in an IFrame by the the MVC view. Report parameters are currently stored as session variables, and for security reasons I would prefer not to change that for HTTP POST or GET parameters. So I can't just put the report

SSRS Session Cookies Report Viewer control

孤人 提交于 2019-12-06 01:54:49
I'm using .NET Report Viewer to run SSRS reports. One thing I noticed is that every time I load a page (not postback) it adds a new session cookie. However after awhile Report Viewer fails due to too big request (too many cookies). Is there any way to delete these cookies? I tried to delete Http Sessions on page load, but cookies are not removed. I can stop creating new cookies by setting on report viewer control KeepSessionAlive="false" , but all old cookies stays. StackTrace I suggest you review these three links i provide below, they might turn out to be of great help http://blogs.msdn.com

Reporting Services Folder Configuration

一世执手 提交于 2019-12-06 01:52:43
问题 As a Newbie for Reporting Services, I have some confusion about setting up report services on my local dev machine. I'm using Sql-Server 2008 Developer Edition on Vista64 Home Premium. When I go to http://localhost/reports, I'm being asked for a login. When I enter an account that I have configured to be a local admin, I get to minimal report server screen that does not give me the option to configure the folder structure. Can I get some advice on how to configure system so that I can get to

SSRS 2008 R2 Carriage Return Problem

淺唱寂寞╮ 提交于 2019-12-06 01:15:31
问题 I have a report with a simple textbox that holds Name, Address, and ZipCode fields. The fields work fine when previewed but when I put them in a block format like: Name Address Zipcode I get double spaced text. A friend showed me a little trick, putting all the fields on one line and instead of hitting return I hit Shift + Return. This worked but only for one line. In other words, I got this result: Name Address ZipCode Etc. I'm sure this is a trivial problem that an experienced user could