No underline shown on links, Action, Hyperlink, Drillthrough in Reporting Services R2 and Denali
September 19, 2011 Leave a comment
If you’re using the ReportViewer 8.0 web control for Reporting Services 2005 in your web application and pointing at Report Server version R2 or Denali then you may see this bug – some font properties such as Color and TextDecoration do not render on an Action element (used for BookmarkLink, Hyperlink and Drillthrough). To get round this you can turn your property values to expressions e.g. change:
<TextDecoration>Underline</TextDecoration>
to:
<TextDecoration>="Underline"</TextDecoration>
Thanks to JhonnyGaleano for the tip-off on msdn forums
Here’s the full, fixed RDL for a Textbox with Action and Drillthrough:
<TextboxName=“section_0_FullName“>
<Style>
<BorderColor>
<Default>#2F5098</Default>
</BorderColor>
<BorderStyle>
<Default>Solid</Default>
<Right>None</Right>
</BorderStyle>
<BorderWidth>
<Default>0.1mm</Default>
</BorderWidth>
<BackgroundColor>=IIF(RowNumber(Nothing) Mod 2, “#ffffff”, “#faf9f7″)
</BackgroundColor>
<FontStyle>=”Italic”</FontStyle>
<FontFamily>=”Tahoma”</FontFamily>
<FontSize>=”8pt”</FontSize>
<FontWeight>=”Bold”</FontWeight>
<Format />
<TextDecoration>=”Underline”</TextDecoration>
<TextAlign>Right</TextAlign>
<Color>=”#00ff00″</Color>
<PaddingLeft>1mm</PaddingLeft>
<PaddingRight>1mm</PaddingRight>
<PaddingTop>0.5mm</PaddingTop>
<PaddingBottom>1mm</PaddingBottom>
</Style>
<Action>
<Drillthrough>
<ReportName>/RSinteract Samples/Orders by Category</ReportName>
<Parameters>
<ParameterName=“FullName“>
<Value>=Fields!FullName.Value</Value>
</Parameter>
</Parameters>
</Drillthrough>
</Action>
<Value>=Fields!FullName.Value</Value>
<CanGrow>true</CanGrow>
<DataElementName>FullName</DataElementName>
</Textbox>
As this problem doesn’t affect reports viewed through Report Manager on Denali I’m guessing it only affects earlier versions of ReportViewer – if so, you may find it easier to upgrade your web application to use the latest ReportViewer control.
If you want help updating large numbers of existing reports then please get in touch below or through our contact form – we have plenty of code we could put together to create a mass report-update tool…

