我现在这样操作的
var viewer;
function search(){
if(A){
viewer=GrapeCity.ActiveReports.Viewer({这里设置renderMode: 'Galley',});
}else{
viewer=GrapeCity.ActiveReports.Viewer({这里设置renderMode: 'Paginated',});
}
但是这样每次调报表服务的时候会有一次报错
RunReportEx报了哥500
但是最终能查询出结果来。
报错内容如下:
POST http://localhost:19462/ReportWebService.asmx/RunReportEx 500 (Internal Server Error)
Access to XMLHttpRequest at 'http://localhost:19462/ReportWebService.asmx/RunReportEx' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
} |