기본적으로 새 SSRS 서버로 마이그레이션해야하는 "내 보고서"보고서가 포함 된 보고서 서버가 있습니다.SSRS - 실제 보고서 파일 얻기
질문 :
이전 서버 인터페이스에서 파일 하나씩을 내 보낸 다음 새로운 서버 인터페이스를 사용하여 업로드 할 필요없이 모든 physical.RDL 파일을 다운로드하는 쉬운 방법들이 있습니까?
회신
스티븐
기본적으로 새 SSRS 서버로 마이그레이션해야하는 "내 보고서"보고서가 포함 된 보고서 서버가 있습니다.SSRS - 실제 보고서 파일 얻기
질문 :
이전 서버 인터페이스에서 파일 하나씩을 내 보낸 다음 새로운 서버 인터페이스를 사용하여 업로드 할 필요없이 모든 physical.RDL 파일을 다운로드하는 쉬운 방법들이 있습니까?
회신
스티븐
기대 일괄 다운로드/업로드 RDL을 당신을 수 있습니다 여기에 사용할 수있는 타사 도구가 있습니다.
당신은 SSRS 웹 서비스 API를 사용하여, 그들 모두를 검색 할 수있는 작은 .NET 응용 프로그램을 작성할 수 있습니다. article on the GetItemDefinition 방법은 하나의 파일을 얻을 수있는 샘플 코드가 여기에 해당 조각의 (복사/붙여 넣기 경고!) :
ReportingService2010 rs = new ReportingService2010();
rs.Url = "http://<Server Name>/_vti_bin/ReportServer/ReportService2010.asmx";
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
string reportName = "http://<Server Name>/Docs/Documents"
+ "/AdventureWorks Sample Reports/Sales Order Detail.rdl";
byte[] reportDefinition = null;
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
try
{
reportDefinition = rs.GetItemDefinition(reportName);
MemoryStream stream = new MemoryStream(reportDefinition);
string myDocumentsFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
doc.Load(stream);
doc.Save(Path.Combine(myDocumentsFolder, "Sales Order Detail.rdl"));
}
당신이 주변에 약간의 루프 (의 일부)이 코드를 작성하는 경우 빠르게 할 수 있습니다 모든 파일을 가져와.
다운로드했지만 연결할 수 없습니다. – swade1987
흠, 확실하지 않습니다. SSRS 2008에서 저에게 잘 작동합니다. 다른 버전을 테스트 할 수 없으므로 걱정됩니다. –