微软BI开拓者前端应用专区SQL Server Reporting Services reporting service 内建了报表的跳转功能

1  /  1  页   1 跳转 查看:2818

[技术文档] reporting service 内建了报表的跳转功能

reporting service 内建了报表的跳转功能

reporting service 内建了报表的跳转功能
使用reportviewer在web上展现

ReportViewer1.ServerReport.ReportServerUrl = ReportUrl;           
ReportViewer1.ServerReport.ReportPath = ReportPath; 

查询报表后,点击实现报表跳转,结果发现跳转后,报表路径被改了
初始时ReportViewer1.ServerReport.ReportPath=a,跳转后就变成b了,
然后不能重新设置成a,具体错误如下
异常详细信息: System.InvalidOperationException: 对象的当前状态使该操作无效。
源错误:         
行 165:            ReportViewer1.ServerReport.ReportPath = ReportPath;           
行 166:

这两个东西如何重置啊
ReportViewer1.ServerReport.ReportServerUrl
ReportViewer1.ServerReport.ReportPath
 

回复:reporting service 内建了报表的跳转功能

加上一句ReportViewer1.Reset();重置

ReportViewer1.ServerReport.ReportServerUrl
ReportViewer1.ServerReport.ReportPath
 

回复:reporting service 内建了报表的跳转功能

ReportViewer1.Reset()

webform 上没有此属性,不过我已经解决,谢谢阿
 

回复:reporting service 内建了报表的跳转功能

怎么改的,共享一下吧》
 
1  /  1  页   1 跳转

版权所有 微软BI开拓者 

Powered by Discuz!NT 2.1.202    Copyright © 2001-2012 Comsenz Inc.
Processed in 0.0468762 second(s) , 3 queries.
返顶部