找回密码
 立即注册

QQ登录

只需一步,快速开始

米斯特李

注册会员

8

主题

22

帖子

72

积分

注册会员

积分
72
米斯特李
注册会员   /  发表于:2022-10-11 10:29  /   查看:1289  /  回复:9
1金币
请问我的ActiveReports 14安装目录为什么没有GrapeCity.ActiveReports.Web.dll这个dll??

最佳答案

查看完整内容

您好,我用15版本做了个demo,您下载参考一下。

9 个回复

倒序浏览
最佳答案
最佳答案
Bella.YuanWyn认证
超级版主   /  发表于:2022-10-11 10:29:15
来自 10#
米斯特李 发表于 2022-10-11 18:03
不管用奥,还是这样子

您好,我用15版本做了个demo,您下载参考一下。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
米斯特李
注册会员   /  发表于:2022-10-11 10:39:01
2#
版本 ActiveReports-v14.1.20250_zh-cn.msi
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2022-10-11 12:04:56
3#
米斯特李 发表于 2022-10-11 10:39
版本 ActiveReports-v14.1.20250_zh-cn.msi

您好,您是想实现什么功能呢~方便的话描述一下
回复 使用道具 举报
米斯特李
注册会员   /  发表于:2022-10-11 15:58:32
4#
Bella.Yuan 发表于 2022-10-11 12:04
您好,您是想实现什么功能呢~方便的话描述一下

调用api生成pdf的过程中报错Could not load file or assembly 'Gcef.Data.DataEngine, Version=2.0.184.0,项目中 已经引用了Gcef.Data.DataEngine这个dll版本也是对的.

以下是代码

  1.   System.IO.FileInfo rptPath = new System.IO.FileInfo(@"C:\Users\User\Desktop\A.rdlx");
  2.             GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(rptPath);
  3.             pageReport.Report.ReportParameters[0].DefaultValue.Values.Add("34085730");
  4.             // Create an output directory.
  5.             System.IO.DirectoryInfo outputDirectory = new System.IO.DirectoryInfo(@"D:\AA");
  6.             outputDirectory.Create();

  7.             // Provide settings for your rendering output.
  8.             GrapeCity.ActiveReports.Export.Pdf.Page.Settings pdfSetting = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings();

  9.             // Set the rendering extension and render the report.
  10.             GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension pdfRenderingExtension = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();
  11.             GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider = new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, "123");

  12.             // Overwrite output file if it already exists
  13.             outputProvider.OverwriteOutputFile = true;

  14.             pageReport.Document.Render(pdfRenderingExtension, outputProvider, pdfSetting);
复制代码


回复 使用道具 举报
米斯特李
注册会员   /  发表于:2022-10-11 16:00:27
5#
本地正常,发布后报错
An unexpected error occurred. Additional information: 'Could not load file or assembly 'Gcef.Data.DataEngine, Version=2.0.184.0, Culture=neutral, PublicKeyToken=0b5e1563d2869208' or one of its dependencies. The system cannot find the file specified.
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2022-10-11 16:33:58
6#
米斯特李 发表于 2022-10-11 16:00
本地正常,发布后报错
An unexpected error occurred. Additional information: 'Could not load file or a ...

您好,看错误信息是找不到这个包,Gcef.Data.DataEngine,您可以在nuget上安装一下。



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
米斯特李
注册会员   /  发表于:2022-10-11 16:46:35
7#
Bella.Yuan 发表于 2022-10-11 16:33
您好,看错误信息是找不到这个包,Gcef.Data.DataEngine,您可以在nuget上安装一下。

这个包已经安装并引用,发布后的目录也存在这个dll,但还是报错
An unexpected error occurred. Additional information: 'Could not load file or assembly 'Gcef.Data.DataEngine, Version=2.0.184.0, Culture=neutral, PublicKeyToken=0b5e1563d2869208' or one of its dependencies. The system cannot find the file specified.
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2022-10-11 17:56:03
8#
米斯特李 发表于 2022-10-11 16:46
这个包已经安装并引用,发布后的目录也存在这个dll,但还是报错
An unexpected error occurred. Additiona ...

您好,您在项目上先清理一下,然后在重新生成一下项目在测试看看,如果说已经引用了包,不应该报这个错,您这样测试看看。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
米斯特李
注册会员   /  发表于:2022-10-11 18:03:54
9#
Bella.Yuan 发表于 2022-10-11 17:56
您好,您在项目上先清理一下,然后在重新生成一下项目在测试看看,如果说已经引用了包,不应该报这个错, ...

不管用奥,还是这样子
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部