Configure FastReport. FastReport reports cannot be loaded. fastreport reports
Plug-in link: Demo address: plugin usage: Step 1: Add reference FastReport. bars. dll FastReport. dll FastReport. web. dll package: Export
Part 3: controller Code 1. View @ WebReportGlobals. Scripts () @ WebReportGlobals. Styles () @ ViewBag. WebReport. GetHtml ()View
2. Controller private WebReport webReport = new WebReport (); public ActionResult Index () {SetReport (); webReport. width = 600; webReport. height = 800; webReport. toolbarIconsStyle = ToolbarIconsStyle. black; ViewBag. webReport = webReport; return View ();} private void SetReport () {string report_path = AppDomain. currentDomain. baseDirectory; // transmits the webReport data. report. registerData (new List <object> {new {Type = "Type", Mobile = "mobile", Price = "price", Date = "date", Title = "title ", ad = "ad" }}, "Orders"); // call the webReport template. report. load (report_path + "order. frx ");}Controller
Error: The FastReport report cannot be loaded and the Error 404 is reported. Solution: Current Project> Properties> Web> Server> select one option [Use Visual Studio development server]