HTML ReportingMoxy produces HTML reports using a javascript library moxy.js, with the look and feel being controlled by moxy.css. HTML reports can be included in your .NET web application as a standalone page, or embedded in any other page. Reports are loaded using AJAX, so can be loaded and updated on demand. HTML Page StructureTo include a Moxy HTML report in an HTML page, you can include all or any of the Moxy DIVs described below. If you don’t want to use a particular feature, then don’t include the DIV. Moxy DIVs
Loading the ReportTo load a report, instantiate a new Moxy.Report javascript object in an OnLoad event as shown in the example. Example<script type="text/javascript"> var sampleReport = new Moxy.Report(); Moxy.Helpers.OnLoad(function () { sampleReport.UpdateReportUrl = "/Report/UpdateReport/"; sampleReport.ExportUrl = "/Report/ExportReport/"; sampleReport.PublishUrl = "/Report/PublishReport/"; sampleReport.Load('<%=ViewData["QueryId"] %>'); }); </script> Help comments powered by Disqus |
Click to see Comments