Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
388 views
in Technique[技术] by (71.8m points)

html - SSRS: How to display a hyperlink in sql services reporting

I'm using SSRS for 2008 R2 to display some data-generated reports. In my database table, I have a cell called Remarks. It usually contains links to software defects. The cell is nvarchar(max) and I've added links such as http://stackoverflow.com. However, when the report is displayed, the link is not clickable as expected. What do I need to do make the link clickable? Many thanks for any help. J.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Two approaches, the first assumes data is pre-formatted as a URL (e.g. https://www.google.com). The second assumes the URL is contained within some other text (e.g. 'This is a link to Google').


URL Only

  1. Right-click the field in design view, select Text Box Properties. Report Builder Field Right-Click

  2. Select the Action pane, select the Go to URL radio button.

  3. In the Select URL textbox, enter the field value expression. Field Action URL


URL Embedded in Text

  1. Double-click the field in design view, then right-click Create Placeholder. Report Builder Placeholder

  2. In the Value textbox, enter the field value expression containing HTML tags.

  3. Under Markup Type, check the HTML - Interpret tags as styles radio button. Report Builder Placeholder options

  4. Verify link is displayed when report is run. Report Builder Placeholder Output



与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...