public override void BuildStarted(string reportId, string documentId, ReportBuildProperties buildProperties) { if (IsEntityAuthorized("Public", ReportDictionaryName, reportId)) { SaveUsedEntityId(DocumentDictionaryName, "Public", documentId); } if (IsEntityAuthorized("Admin", ReportDictionaryName, reportId)) { SaveUsedEntityId(DocumentDictionaryName, "Admin", documentId); } if (IsEntityAuthorized("John", ReportDictionaryName, reportId)) { SaveUsedEntityId(DocumentDictionaryName, "John", documentId); } }
public override Action BuildStarting(string reportId, string reportUrl, XtraReport report, ReportBuildProperties buildProperties) { var dse = new UniqueDataSourceEnumerator(); foreach (var dataSource in dse.EnumerateDataSources(report, true)) { if (dataSource is ObjectDataSource ods && ods.DataSource is Type dataSourceType && dataSourceType == typeof(VehiclesData.Vehicle)) { report.DataSource = new ObjectDataSource() { DataSource = new VehiclesData(ReportingCustomConfigurationProvider.GetGlobalConnectionStrings()["VehiclesConnection"]), DataMember = nameof(VehiclesData.GetVehicles) }; } } return(base.BuildStarting(reportId, reportUrl, report, buildProperties)); }
public override void BuildStarted(string reportId, string documentId, ReportBuildProperties buildProperties) { SaveUsedEntityId(Constants.ReportDictionaryName, reportId); SaveUsedEntityId(Constants.DocumentDictionaryName, documentId); }
public override Action BuildStarting(string reportId, XtraReport report, ReportBuildProperties buildProperties) { report.CreateDocument(); return(null); }
public override Action BuildStarting(string reportId, XtraReport report, ReportBuildProperties buildProperties) { var httpContext = HttpContext.Current; return(() => GenerateBuildStatingAction(report, httpContext)); }