【发布时间】:2018-05-05 03:05:09
【问题描述】:
我已按照说明在 .Net 中安装自定义配方:https://jsreport.net/learn/dotnet-local,但我无法使其工作。
- 我已在我的项目文件夹(存储 .csproj 的位置)中创建了一个 jsreport
- 我已将 jsreport.config.json 创建到 jsreport 文件夹中。
- 我已使用“npm install electron-pdf”将 electron-pdf 安装到 jsreport 文件夹中
- 我在构建时使用 xcopy 将此文件夹复制到输出目录。
- 构建后,我可以在 \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