XtraReport 报错:Report scripts were found in the application while the script execution is disabled.
作者:C/S框架网|www.csframewo  发布日期:2023/03/20 20:39:10
  XtraReport 报错:Report scripts were found in the application while the script execution is disabled.

VS2022+.NET7 CSFrameworkV6旗舰版踩坑日记:


错误1:

Report scripts were found in the application while the script execution is disabled.





解决方案


启用脚本,在主程序 Program.cs文件Main方法内加下面代码:

C# Code:

ScriptPermissionManager.GlobalInstance = new ScriptPermissionManager(ExecutionMode.Unrestricted);

//来源:C/S框架网 | www.csframework.com | QQ:23404761




错误2:

cannot execute report scripts because the application does not include required libraries






解决方案

主程序NuGet安装:Microsoft.CodeAnalysis Version="4.5.0"



C/S框架网|原创精神.创造价值.打造精品


扫一扫加作者微信
C/S框架网作者微信 C/S框架网|原创作品.质量保障.竭诚为您服务
上一篇 下一篇