Im creating a report in RS2008.
Everytime I create a textbox and write an expression, instead of watching the expression text after I change focus of the element I get the following tag: <<Expr>>.
I'm used to creating reports on RS2005 and if in a textbox I wrote ="Hello", for example, once I change focus it will display ="Hello" not <<Expr>>.
Its probably a setting but I can't find how to change it.
I don't think you can change this - it's by design in SSRS 2008.
I would say the reasoning behind it is that you can now have multiple placeholders in one Textbox and it's easier to represent with multiple <<Expr>> values:
For text and basic field values, these will not have <<Expr>> displayed.
If you change basic text from ="Hello" to just Hello that's what will be displayed in the designer:
And an expression like =Fields!val1.Value will be displayed like this in the designer:
It's jarring at first but you get used to it.
Related
I need to display a Textbox in the body of the report, but it has to be on a separate last page. It is actually a Word file that needs to be shown in each report, but seeing as how the only way to accomplish this is to put the file to the Report Server and then access it with a link, I decided to copy the contents of the file to a Textbox.
This and this question on SE are similar, however it is not exactly what I need.
You can achieve this by adding items with appropriate page breaks to the report.
Say I have a simple report with a table and a textbox:
The end result looks about what you'd expect:
However, we can force the textbox onto a new page by embedding it in a Rectangle and setting the Rectangle to always be preceded by a page break:
Now the report displays the textbox on the last page:
Tables themselves can also have page breaks, but since it's just text with no dataset it makes sense to me to use a Rectangle here.
Good Afternoon All
I use SSRS all the time and when making reports i normally insert a placeholder at the title, so whenever i write anything in a specific parameter, it will show on the placeholder using the tool tip.
I have now gone onto selecting multiple items on my parameter and the problem that i am getting is that the placeholder can only show one of many i selected, i have been trying to find out how i can use the placeholder to show all items i select, but had no luck at all.
Could you help me in the situation that i am in...
Look here
=Join(Parameters!ParameterName.Label, ",")
In my report I have Matrices that appear according to the parameters on a SP. Each Matrix holds an specific "code"/description which I want to show on the Page Header accordingly.
I tried using an <<Expr>> but that didn't work well as it only shows the first record of the database instead of the code for the specific matrix.
Then I found out that I can show an specific textbox with "=ReportItems!TextBoxXX.Value" and so I added to each Matrix the code value hidden.
Now I thought of adding in the page header inside a TextBox a concatenation of all the values, but that didn't work, and I got a:
"The value expression for the textrun "textboc11.Paragraphs[0].TextRuns[0]" refers to more than one report item. An expression in a page header or footer can refer to only one report item.
Hence, my next attempt consisted of adding separate text boxes each one with the desired TextBox Value and one behind the other (like a Pile of textboxes). Everything working now, except that the "space" that each textbox occupies appears in the report showing the desired value and a white space above each textbox when rendered.
Any ideas of how to prevent this behavior? Maybe creating an array with the textboxes and creating an IIF or I don't know, I've been searching for days and nothing seems like a good approach.
I hope someone can give me some advice and that I explained myself.
Thanks!
I have a report in SQL Server Reporting Services which should show
a text box with a static text for "normal" users
a text box with a hyperlink to open up a new details windows for "super" users
The user level is determined by a parameter being passed into the report.
How can I achieve this? I tried to create a textbox with a text span inside that has a hyperlink, and then just leave it blank for "normal" users, but that doesn't seem to work reliably.
Is there a trick or method to get this to work? I'm thinking I need to add some code to the report to check the user level and then either insert a static text, or a text with a label, into that target textbox. But how do I do that (not having any VB/VBA/VB.NET experience....)
Thanks!
Marc
To make the hyperlink, you should be able to use an expression like
=iif(Parameters!IsSuperUser.Value = True, "http://some link","#")
in the Action property of the textbox, if you set the Action to "Jump to URL".
To control the content of the textbox, use a similar expression in the Value property.
(This is true on SSRS 2005 - I don't have access to 2008)
Edit
Unfortunately, hyperlinks in SSRS aren't formatted in a way to make it clear that they're hyperlinks. The only way to achieve this would be to add similar conditional formatting expression to the Color and TextDecoration attributes to make the field appear in a different colour and underlined when it is a hyperlink.
I haven't got SSRS installed on the machine that i'm writing this on so i can't give you an exact guaranteed bug free answer, but this answer should set you on the right track.
Have two textboxes, both located in the same absolute position (inside a container element if necessary). Fill them both with their correct values. Then just control their visibility by toggling their Hidden property with an expression:
=(Parameters!UserLevel.Value = 'Admin')
Obviously UserLevel is the name of the parameter being passed in to the report. The 'Admin' value is for illustrative purposes, personally i would use an int value to represent the user level, much like using an enum.
Remember that it is the Hidden property you are setting, so you have to reverse the logic you would have used if you were setting a Visible property :)
I have a report to build that has many different fields showing various results.
As these numbers are not intuitive, I need some sort of mechanism to display a balloon tooltip when the user hovers over or clicks on a number.
I am open to either Crystal reports or SSRS. I will just be limited to the free editions that come with visual studio 2008.
Any help or advice is appreciated
In SSRS, most controls have ToolTips
For example, the textbox properties tab
Crystal Reports also supports tool-tip text. Right click the field, select Format Field..., then the Common tab. Enter a static value in the 'tool tip text' field or click the button to the right of the field and enter a conditional formula that will calculate the value.