1、实现思路在对模板进行URL直接导出时,直接在URL后增加&__filename__=名称即可,注:&__filename__前后都有两个下划线。
2、下面我们以GettingStarted.cpt为例,将其导出成PDF格式并将其导出文件重命名为mytest。
3、在URL直接导出的URL:http://localhost:8075/WebReport/ReportServer?report造婷用痃let=GettingStarted.cpt&format=pdf后增加&__filename__=mytest即可。完整的URL为:http://localhost:8075/WebReport/ReportServer?reportlet=GettingStarted.cpt&format=pdf&__filename__=mytest,点击enter键可以看到已经将导出的文件进行重命名了,如下: