views:

1177

answers:

1

I have created a local report on a datasource that has a field named "RelativePath". When my WinForms app renders the report, it exports files to the location specified in the RelativePath field. In the report builder, I set Navigation|Hyperlink action|Jump to URL to "=Fields!RelativePath.Value" and set the report's EnableHyperlink property to true. Whenever my app renders the report, however, the hyperlink is not active. If I hardcode the Jump to URL to an absolute path, however, it works just fine. Does the ReportViewer not render a hyperlink with a relative path?

+1  A: 

I have been struggling with the same problem after which i came to the conclusion that the reportviewer does not support hyperlinks with the relative path. To solve this problem is by adding a custom code that retrieves the relative path then concantenate with the field values that you may wish to be part of the URL - atleast that works for me.

Shaddie

I have come to the same conclusion. You're saying you have to turn relative URLs into absolute URLs, but I'm using the WinForms ReportViewer and need relative URLs to make the rendered report portable. In the end, I gave up and simply wrote out an HTML file.
flipdoubt