public void CreateReport(ReportGroup reportGroup, Report report, int seq) { byte[] definition = report.Process(reportGroup.TargetFolder, reportGroup.DataSource); if (definition == null) { return; } Warning[] warnings = _proxy.CreateReport( report.Name, Util.FormatPath(reportGroup.TargetFolder), true, definition, null); if (warnings != null) { Logger.LogMessage(string.Format("{0} Report:{1} / [{2}] published successfully with some warnings", seq, reportGroup.Name, report.Name)); //foreach(Warning warning in warnings) //{ // Logger.LogMessage(warning.Message); //} } else { Logger.LogMessage(string.Format("{0} Report:{1} / [{2}] published successfully with no warnings", seq, reportGroup.Name, report.Name)); } if (report.CacheOption != null && report.CacheOption.CacheReport && report.CacheOption.ExpirationMinutes != null) { _proxy.SetCacheOptions( string.Format("{0}/{1}", Util.FormatPath(reportGroup.TargetFolder), report.Name), true, new TimeExpiration() { Minutes = report.CacheOption.ExpirationMinutes.Value }); } }