【问题标题】:Can't use custom recipe with .Net Core无法将自定义配方与 .Net Core 一起使用
【发布时间】:2018-05-05 03:05:09
【问题描述】:

我已按照说明在 .Net 中安装自定义配方:https://jsreport.net/learn/dotnet-local,但我无法使其工作。

  1. 我已在我的项目文件夹(存储 .csproj 的位置)中创建了一个 jsreport
  2. 我已将 jsreport.config.json 创建到 jsreport 文件夹中。
  3. 我已使用“npm install electron-pdf”将 electron-pdf 安装到 jsreport 文件夹中
  4. 我在构建时使用 xcopy 将此文件夹复制到输出目录。
  5. 构建后,我可以在 \bin\Debug\netcoreapp2.0 中看到 jsreport 文件夹,其中包含 jsreport.config.json 文件和 node_modules 文件夹。

我仍然得到:

Error during rendering report: Recipe 'electron-pdf' not found

当我指定时

HttpContext.JsReportFeature().Recipe(Recipe.ElectronPdf);

我做错了什么?

【问题讨论】:

    标签: jsreport


    【解决方案1】:

    自己修好了。除了electron-pdf,我还必须安装jsreport-electron-pdf(两个NPM包都需要)。

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-31
      • 1970-01-01
      • 1970-01-01
      • 2016-08-15
      • 2017-09-03
      相关资源
      最近更新 更多