我很难在URL地址栏上传递参数...
继承人我所拥有的:
http://win-t8o9hquvjcf/Reports/Pages/Report.aspx?ItemPath=%2fDatasheetforOMManual&ProjectReference=65656
ProjectReference是报表生成器的参数..我在这里做错了什么?
答案 0 :(得分:0)
解决了这个问题,您必须使用ReportServer
网址链接,而不是报告本身......
http://yourservername/ReportServer/Pages/ReportViewer.aspx?%2fdatabasename%2freportname&rs:Command=Render¶meter=1
添加&rs:Format=PDF
会将其显示为PDF ...
并且对于Lightswitch,它使用以下方法:
var param1 = screen.tablename.param1
window.open("http://yourservername/ReportServer/Pages/ReportViewer.aspx?%2fdatabasename%2freportname&rs:Command=Render¶meter=1" + param1 + "&rs:Format=PDF");