[英]Opening URL in new window with paramters
I have the following code in the URL of an SSRS report to open a report 'GL TTM.rdl' in a new window.我在 SSRS 报告的 URL 中有以下代码,用于在新的 window 中打开报告“GL TTM.rdl”。 The label parameter just takes in a string value 'month' label 参数只接受一个字符串值“月”
However, when I click on the link, nothing happens.但是,当我单击链接时,什么也没有发生。 Please help me figure out What is wrong in this code?请帮我弄清楚这段代码有什么问题?
Also, what changes should I make to get this new page to export to Excel?另外,我应该做些什么改变才能让这个新页面导出到 Excel?
="javascript:void window.open(" &"'"& Globals!ReportServerUrl &"/Pages/ReportViewer.aspx?"
&Globals!ReportFolder
& "/GL+TTM
&cono="& Fields!cpnyid.Value &"
&PLRow="&Fields!PLrow.Value &"
&fiscyr="&Fields!fiscyr.Value &"
&MonthName="&Fields!MonthName.Value &"
&label="'month'"
&Category="&Fields!Category.Value &"
','_blank')"
I got it.我知道了。 I removed all quotes from the parameter value for 'label' and also removed the + from the report name我从“标签”的参数值中删除了所有引号,并从报告名称中删除了 +
="javascript:void window.open(" &"'"& Globals!ReportServerUrl
&"/Pages/ReportViewer.aspx?"
&Globals!ReportFolder
& "/GL TTM
&cono="& Fields!cpnyid.Value &"
&PLRow="&Fields!PLrow.Value &"
&fiscyr="&Fields!fiscyr.Value &"
&MonthName="&Fields!MonthName.Value &"
&label= month
&Category="&Fields!Category.Value &"
','_blank')"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.