XtraReport 报错:Report scripts were found in the application while the script execution is disabled.
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"
扫一扫加作者微信