private void InitSSRS() { //init ssrs stuff rs = new ReportingService2005(); rs.Credentials = System.Net.CredentialCache.DefaultCredentials; rs.Url = GetRSURL(); }
private void reportServer_Click(object sender, EventArgs e) { if (reportServer.ReadOnly == true) { // reset the rs object btnDeploy.Enabled = false; btnGo.Enabled = true; rs = null; ClearServerInfo(); //and give control back to the user reportServer.ReadOnly = false; } }
private object GetFoldersOnServer(ReportingService2005 reportingService2005, BackgroundWorker worker, DoWorkEventArgs e) { try { return rs.ListChildren("/", true); //this returns : CatalogItem[] } catch (SoapException ex) { throw new Exception("SOAP Exception occured : " + ex.Detail.InnerXml.ToString(), ex); } catch (Exception ex) { throw new Exception("Unexpected exception occured while retrieving Folders on reporting server", ex); } }