fengyu77 发表于 2015-5-14 10:16:00

webviewer属性

你好,我发现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 ="";
我该如何解决?

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

为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
http://gcdn.gcpowertools.com.cn/attachment.aspx?attachmentid=10062
页: [1]
查看完整版本: webviewer属性