public Stream GetReportDefinition(string report) { //Return a report definition from the SQL reporting server microsoft.ReportingService2010 rs = new microsoft.ReportingService2010(); rs.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; byte[] bytes = rs.GetItemDefinition("/Argix08.Reports" + report); return(new System.IO.MemoryStream(bytes)); }
public Stream GetReportDefinition(string report) { //Return a report definition from the SQL reporting server Stream stream = null; try { microsoft.ReportingService2010 rs = new microsoft.ReportingService2010(); rs.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; byte[] bytes = rs.GetItemDefinition(ITEM_SUBPATH + report); stream = new System.IO.MemoryStream(bytes); } catch (Exception ex) { reportError(ex); } return(stream); }