public IActionResult PreviewReport() { DataSet data = new DataSet("Demo"); data.ReadXml(StiNetCoreHelper.MapPath(this, "Reports/Data/Demo.xml")); StiReport report = StiNetCoreDesignerFx.GetReportObject(this); report.RegData(data); return(StiNetCoreDesignerFx.PreviewReportResult(this, report)); }
public IActionResult PreviewReport() { // Get the report template StiReport report = StiNetCoreDesignerFx.GetReportObject(this); // Register data, if necessary var data = new DataSet("Demo"); data.ReadXml(StiNetCoreHelper.MapPath(this, "Data/Demo.xml")); report.Dictionary.Databases.Clear(); report.RegData(data); // Return the report snapshot result to the client return(StiNetCoreDesignerFx.PreviewReportResult(this, report)); }