I have an RDL which was in 2005 report server.
By using an updated IDE, it converts the 2005 RDL to 2008 RDL.
There is an issue about font weight. In 2005, font weight can be specified as an integer.
<FontWeight>700</FontWeight>
And IDE converts it to
<FontWeight>Bold</FontWeight>
As font weight cannot be an integer in 2008 version.
However font weight [Bold] is not as thick as [700], in this 2005 report, these two value are applied.
Is there any way to implement the 700 properly in the 2008 RDL?
Thanks.
Bold should match a font weight of 700, but if you need to make it darker try ExtraBold (weight 800) or Heavy (weight 900).
https://msdn.microsoft.com/en-us/library/ee240142(v=sql.105).aspx
Related
In Reporting Services 2008 R2, in a Tablix I have the following code that changes the background colour dependant on the value:
=switch(Fields!Mean_Difference.Value > 0,"#DA9694",
Fields!Mean_Difference.Value = 0,"#FCD5B4",
Fields!Mean_Difference.Value < 0,"#C4D79B")
However when there is a NULL value it formats it the same colour as if it is equal to 0, the problem is that I do not want it to be formatted, just left blank. I have tried using isNothing() with no luck and cannot seem to find an answer.
Can this be done?
does this work? (you should use Nothing for transparent background in ssrs). Are you sure that the value is definitely null?
=iif(IsNothing(Fields!Mean_Difference.Value)
,Nothing
,switch(Fields!Mean_Difference.Value > 0,"#DA9694",
Fields!Mean_Difference.Value = 0,"#FCD5B4",
Fields!Mean_Difference.Value < 0,"#C4D79B"))
I am building a report in SSRS with chart in which I have set the following DynamicWidth expression:
=Iif(UCase(Globals!RenderFormat.Name) = "PDF", "26", "10") & " cm"
However, when exporting to PDF from report manager the chart size does not change.
Any ideas?
EDIT: I placed a textbox to look up Globals!RenderFormat.Name and it turns out it is giving #ERROR, and is marked as 'unrecognized identifier' in expression editor. Is there a way to fix it?
Try this
=IIF(UCASE(Globals!RenderFormat.Name)="PDF","26","10 ")+"CM"
UPDATE
I Have tested on SSRS 2008 it works fine
I have found the solution - turns out the server is in vanilla 2008 version, not R2.
how to globally change the date format in SQL server reporting
services?
Set the Language property of field with date (or entire Report) to
=User!Language
and Format to
d
In a SQL 2005 Report Server Project, how do you put an HTML entity (such as & or Δ) in the value of a column's header Textbox?
for those 2 symbols you can simply copy and paste.
In SQL Reporting Services 2008, can you format a field conditionally? In Crystal Reports it is doable. I have a field which I want to be bold if another field is Y, and unbold if its value is N.
Use the FontWeight property of the field, and set it to an expression like this:
=iif(Fields!YourTestField.Value="Y","Bold","Default")
You can find FontWeight in the properties pane for the report item, or under Font -> Style -> Bold in the properties dialog (right click -> properties). Use the f(x) button to edit the formula.