找回密码
 立即注册

QQ登录

只需一步,快速开始

fengyu77

银牌会员

15

主题

94

帖子

3069

积分

银牌会员

积分
3069

活字格认证

[已处理] webviewer属性

fengyu77
银牌会员   /  发表于:2015-5-14 10:16  /   查看:4457  /  回复:3
你好,我发现WebViewer控件内的report属性和reportname属性不能同时存在,如果连续两条定义
WebViewer1.Report = rpt;
WebViewer1.ReportName = "RdlReport2.rdlx";
最终的结果是
WebViewer1.Report ="";
WebViewer1.ReportName = "RdlReport2.rdlx";
如此,对于我动态绑定SQL数据库的报表在运行时就找不到报表了。但是如果我调换顺序
WebViewer1.ReportName = "RdlReport2.rdlx";
WebViewer1.Report = rpt;
这样的话
WebViewer1.ReportName ="";
我该如何解决?

3 个回复

倒序浏览
frank.zhang
社区贡献组   /  发表于:2015-5-14 11:25:00
沙发
您好,
在AR9带的官方文档中对于这两个字段的解释是:
Report     :Specifies the report object to display to the client.
ReportName :Specifies the name of the report object to display to the client.
所以建议您使用WebViewer1.Report = rpt;的方式。
您在使用上述的方式时,是否遇到了问题,才需要您使用ReportName呢?
回复 使用道具 举报
fengyu77
银牌会员   /  发表于:2015-5-14 12:54:00
板凳
回复 2楼frank.zhang的帖子

恩,好的。没什么问题了
回复 使用道具 举报
frank.zhang
社区贡献组   /  发表于:2015-5-14 13:44:00
地板
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢

评分

参与人数 1满意度 +5 收起 理由
fengyu77 + 5 已解决问题

查看全部评分

回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部