public byte[] GetReportDefinition(string reportPath) { if (string.IsNullOrEmpty(reportPath)) { throw new ArgumentException("reportPath"); } this.mLogger.Debug("GetReportDefinition - reportPath = {0}", reportPath); byte[] def = this.mReportingService.GetItemDefinition(reportPath); string reportDefinition = SSRSUtil.ByteArrayToString(def); if (reportDefinition.Substring(0, 1) != "<") { reportDefinition = reportDefinition.Substring(1, reportDefinition.Length - 1); } def = SSRSUtil.StringToByteArray(reportDefinition); //this.mLogger.Debug("GetReportDefinition - Definition = {0}", reportDefinition); return(def); }