找回密码
 立即注册

QQ登录

只需一步,快速开始

1109634667

注册会员

2

主题

13

帖子

76

积分

注册会员

积分
76
最新发帖

[已处理] 求助

1109634667
注册会员   /  发表于:2017-3-28 17:28  /   查看:5878  /  回复:13
activereports中报错误        1        “GrapeCity.ActiveReports.Web.WebViewer”不包含“LoadDocument”的定义,并且找不到可接受类型为“GrapeCity.ActiveReports.Web.WebViewer”的第一个参数的扩展方法“LoadDocument”(是否缺少 using 指令或程序集引用?)        c:\users\wangxinran\documents\visual studio 2013\Projects\WebApplication5\WebApplication5\WebForm1.aspx.cs        44        24        WebApplication5

13 个回复

倒序浏览
1109634667
注册会员   /  发表于:2017-3-28 17:29:56
沙发
  private void viewer1_Load(object sender, EventArgs e)
        {
            GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport
            (new System.IO.FileInfo("../../PageReport_DataSource_RdlReport1.rdlx"));
            GrapeCity.ActiveReports.Document.PageDocument runtime = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
            runtime.LocateDataSource += new GrapeCity.ActiveReports.LocateDataSourceEventHandler(runtime_LocateDataSource);
            WebViewer1.LoadDocument(runtime);
        }
    }
}
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-3-28 17:31:11
板凳
ASP.NET 项目加载报表,直接通过ReportName 或Report 属性来指定:
This.Viewer1.Report=pageReport
回复 使用道具 举报
1109634667
注册会员   /  发表于:2017-3-28 17:38:22
地板
还有个问题,项目中又是报arjq未定义
回复 使用道具 举报
1109634667
注册会员   /  发表于:2017-3-28 17:41:04
5#
能给个在web项目中如何加载rdl报表的教程么   谢谢了
回复 使用道具 举报
1109634667
注册会员   /  发表于:2017-3-28 17:44:26
6#
Lenka.Guo 发表于 2017-3-28 17:31
ASP.NET 项目加载报表,直接通过ReportName 或Report 属性来指定:
This.Viewer1.Report=pageReport


能给个在web项目中如何加载rdl报表的教程么   谢谢了
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-3-28 17:54:46
7#
您是已经购买的用户,还是正在试用评估的用户呢?

建议先看报表三小时入门视频,当然可以跳着看: http://gcdn.gcpowertools.com.cn/ ... &extra=page%3D1
回复 使用道具 举报
1109634667
注册会员   /  发表于:2017-3-28 18:19:52
8#
Lenka.Guo 发表于 2017-3-28 17:54
您是已经购买的用户,还是正在试用评估的用户呢?

建议先看报表三小时入门视频,当然可以跳着看: http: ...

使用评估的用户
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-3-29 09:25:29
9#
了解,给您留言了,请注意查看~
回复 使用道具 举报
1109634667
注册会员   /  发表于:2017-3-29 10:24:44
10#
Lenka.Guo 发表于 2017-3-28 17:54
您是已经购买的用户,还是正在试用评估的用户呢?

建议先看报表三小时入门视频,当然可以跳着看: http: ...

错误明细:
GrapeCity.ActiveReports.ReportException: 发生了一个意外错误。更多信息: '不支持所指定的方法。' ---> System.NotSupportedException: 不支持所指定的方法。
   在 #PwA.#4Se.BeginTransaction()
   在 #2wA.#9Ve.#U.#aWe.#Kcf(#bVe recordManager, #PTe expressionEvaluatorFactory)
   在 #2wA.#9Ve.#Kcf(#dWe[] commands, #PTe expressionEvaluatorFactory)
   在 #2wA.#1Ve.#aBA()
   在 GrapeCity.ActiveReports.ReportsCore.Rendering.ReportProcessor.#dEf(ReportDataDefinition reportDataDef)
   在 GrapeCity.ActiveReports.ReportsCore.Rendering.ReportProcessor.#Tol()
   在 GrapeCity.ActiveReports.ReportsCore.Rendering.ReportProcessor.#fn(Boolean forceDataRefresh, Boolean forceParameterDataRefresh)
   在 GrapeCity.ActiveReports.Document.PageDocument.#0Kf(Boolean forceDataRefresh, Boolean forceParameterDataRefresh)
   --- 内部异常堆栈跟踪的结尾 ---
请问这个问题怎么解决呀
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部