在 SSRS 2008 中,我想创建一个相对路径 URL。长话短说,我有一个订阅,它将几千个静态 HTML 页面输出到一个用作网站内容的文件夹中。过去,我使用文本框属性 -> 操作 -> 转到 URL 创建了指向站点上其他页面(实际上是子报告)的完整 URL。我想修改我的代码,使其返回目标的相对路径而不是完整的 URL。这将减少某人最终通过更改网站域或文件夹结构来破坏导航的可能性。当我尝试完成这项工作时,以前可单击的对象不再是可单击的。 如何使 SSRS 超链接跳转到相对 URL 而不是完全限定的 URL?
这是有效的:
="https://some.domain.com/some_page/" + Fields!Custom_Page_Name.Value.ToString() + ".html"
这是不起作用的:
="../" + Fields!Custom_Page_Name.Value.ToString() + ".html"
="/" + Fields!Custom_Page_Name.Value.ToString() + ".html"
=Fields!Custom_Page_Name.Value.ToString() + ".html"
="..\" + Fields!Custom_Page_Name.Value.ToString() + ".html"
="\" + Fields!Custom_Page_Name.Value.ToString() + ".html"