0
A
回答
0
有好幾次,我使用了一個名爲SSRSExtractor(開源)的程序。它可用於CodeProject.com http://www.codeproject.com/Articles/339744/SSRS-Downloading-RDL-Files
0
我還收到了一些代碼下載從服務器SSRS
public void SaveAdhocReportsToFile()
{
string inputPath = "Reports";
string outPutDir = "D:\\Reports\\";
ExportListItemToFiles("/" + inputPath, ".rdl", outPutDir, ItemType.Report);
}
private void ExportListItemToFiles(string inputPath, string fileExtension, string outPutFolder, string itemType)
{
try
{
Console.WriteLine("Exporting " + itemType + " from SSRS - folder " + inputPath + " to " + outPutFolder);
string outPutFile = string.Empty;
List<CatalogItem> items = ReportService.ListChildren(inputPath, false).Where(x => x.TypeName == itemType).ToList();
foreach (CatalogItem item in items)
{
byte[] rpt_def = null;
XmlDocument doc = new XmlDocument();
rpt_def = ReportService.GetItemDefinition(item.Path);
MemoryStream stream = new MemoryStream(rpt_def);
outPutFile = string.Format(@"{0}{1}" + fileExtension, outPutFolder, item.Name);
if (File.Exists(outPutFile))
File.Delete(outPutFile);
doc.Load(stream);
doc.Save(outPutFile);
}
}
catch (SoapException ex)
{
throw new Exception(ex.Message);
}
}
你可以參考ReportingService2010方法報告:https://msdn.microsoft.com/en-us/library/reportservice2010.reportingservice2010_methods%28v=sql.120%29.aspx
相關問題
- 1. 報告服務和RDL文件
- 2. 從sql報告服務器下載XML文件
- 3. SSRS:將多個報告上載到報告服務器2008 R2
- 4. SQL Server報告服務圖表報告
- 5. 換行不上的.rdl報告文本的開頭(SQL Server報表服務)
- 6. 教程SQL服務器2008年報告服務R2
- 7. Visual Studio報告服務報告2008
- 8. 在SQL Server 2005報告.rdl文件中使用ASP.NET服務器控件
- 9. SQL Server報表服務(SSRS)在SSRS 2005年報告2008
- 10. 報告服務,在rdl中有兩個報告
- 11. 報告服務SQL Server 2008未部署
- 12. SQL Server 2008報告服務權限
- 13. Sql Server報告服務2008呈現Excel
- 14. 「EXPR」 在SQL Server報告服務2008年
- 15. SQL Server 2008報告服務報告定義自定義擴展
- 16. 生成URL報告 - SQL Server報告服務2008
- 17. 報告查看器與服務器2008
- 18. 在asp.net中使用報告查看器從服務器使用rdl文件
- 19. 負載RDL報告轉換爲Web報告查看器
- 20. 報告觀衆報告服務在VS 2008報告控制
- 21. 如何將報表(RDL文件)從SQL Server 2008 R2遷移到2012?
- 22. 如何打開報告生成器並從C#加載服務器報告
- 23. 從Microsoft Sql服務器提取報告
- 24. 存檔報告SQL 2005報告服務
- 25. SQL報告服務 - 報告不更新
- 26. 取消報告服務器在SSRS 2008上運行的報告?
- 27. Crystal 2008中的服務器端報告?
- 28. 我如何註冊一個SQL Server 2008報告服務報告Web引用?
- 29. SQL服務器報告服務:如何在打開時停止報告觸發
- 30. RDL文件 - 報告服務顯示在設計視圖HTML
出於好奇,爲什麼呢?這是什麼目的?你是編程編輯文件,然後推它們備份到數據庫? –
另外,你嘗試過什麼或者發現任何跡象表明這是可能在SQL Server 2008? –
改寫文本 – Nikos