2013-03-22 46 views
3

最近我開始與SSRS合作,發現ReportingCloud。它說如何在asp.net網站中使用ReportingCloud?

ReportingCloud provides an open source quality implementation 
as an extension of the RDL specification 

我還沒有找到任何關於如何在sourceforge或通過谷歌搜索使用它的教程/文檔。

任何人都可以在上給出一個步行/示例如何使用ReportingCloud?

回答

1

有可在http://sourceforge.net/projects/reportingcloud/forums/forum/1116661/topic/4571059一個局部的例子。

該示例採用現有的RDL文件,解析並執行它,然後將HTML輸出放入一個asp.net文字控件以顯示在瀏覽器中。

該代碼段會在此重複:

XmlDocument xmlDoc = new XmlDocument(); 
xmlDoc.Load("C:\MyFolder\MyReport.rdl"); 

RDLParser rdlp = new RDLParser(xmlDoc.OuterXml); 
rdlp.Parse(); 

MemoryStreamGen ms = new MemoryStreamGen(); 
ProcessReport pr = new ProcessReport(rdlp.Report, ms); 
pr.Run(null, OutputPresentationType.ASPHTML); 

// Dump memory stream (HTML Text) to an out-of-box ASPX Literal control 
this.LiteralReportHtml.Text = ms.GetText(); 

要做到這一點,您需要ReportingCloud.Engine參考。


我不知道你的更大的目標是什麼,但我想提請你注意在GitHub上的另一個開源項目叫做My-FyiReportinghttps://github.com/majorsilence/My-FyiReporting

就像ReportingCloudMy-FyiReporting是叉子FyiReporting(已經休眠)。

就你而言,最大的區別是My-FyiReporting有ASP.NET示例和ASP.NET用戶控件link。這可能是快速達到您需要的方式。

文件ORIGINALPROJECT.TXTReportingCloud說:

的ReportingCloud是從原始項目fyiReporting 4.1(http://www.fyireporting.com)叉子。

文件readme.mdMy-FyiReporting說:

我-FyiReporting是fyiReporting的一個分支。我不能強調這個 就夠了。這是一個FORK。主要目的是確保我有一個 副本fyiReporting,因爲該項目似乎已經死亡。

+0

感謝「我的FyiReporting」 – 2013-04-08 08:57:41

1

也許這將幫助你 All doc files

+1

即使只發布鏈接作爲答案不建議,感謝您的帖子。 – 2013-04-02 09:03:04