<add name="FastReportHandler" path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" /> |
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport" /> |
<add namespace="FastReport" /> <add namespace="FastReport.Web" /> |
@WebReportGlobals.Scripts() @WebReportGlobals.Styles() |
using FastReport.Web; WebReport webReport = new WebReport(); // オブジェクトを生成 webReport.Width = 600; // 幅を設定 webReport.Height = 800; // 高さを設定 webReport.Report.RegisterData(dataSet, "AppData"); // データバインディング webReport.ReportFile = this.Server.MapPath("~/App_Data/report.frx"); // ファイルからレポートをロード ViewBag.WebReport = webReport; // View にオブジェクトを送信 |
@ViewBag.WebReport.GetHtml() |
Install-Package Microsoft.AspNet.Web.Optimization -Pre |
Install-Package Newtonsoft.Json |
(2013/04/11)