有可在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-FyiReporting
https://github.com/majorsilence/My-FyiReporting
就像ReportingCloud
,My-FyiReporting
是叉子FyiReporting
(已經休眠)。
就你而言,最大的區別是My-FyiReporting
有ASP.NET示例和ASP.NET用戶控件link。這可能是快速達到您需要的方式。
文件ORIGINALPROJECT.TXT
從ReportingCloud
說:
的ReportingCloud是從原始項目fyiReporting 4.1(http://www.fyireporting.com)叉子。
文件readme.md
從My-FyiReporting
說:
我-FyiReporting是fyiReporting的一個分支。我不能強調這個 就夠了。這是一個FORK。主要目的是確保我有一個 副本fyiReporting,因爲該項目似乎已經死亡。
感謝「我的FyiReporting」 – 2013-04-08 08:57:41