针对报告服务器中的访问限制,可以通过以下步骤进行处理:
string reportServerUrl = "http://localhost/ReportServer"; ReportingService2010 rs = new ReportingService2010(); rs.Url = reportServerUrl + "/ReportService2010.asmx";
//设置访问限制
string accessRestrictions = "
ReportingService2017 rs = new ReportingService2017(); string accessRestrictions = "http://localhost"; rs.PatchGlobalSettings(new Property[] { new Property { Name = "AccessControlAllowOrigin", Value = accessRestrictions } });
下一篇:报告宽泛的过滤器与视觉矛盾