title: Use Stimulsoft for reporting data in Asp.net core
body: <p>when i was work with <code>Windows Form Application C#</code> .For reporting use <a href="http://www.stimulsoft.com" rel="nofollow noreferrer">Stimulsoft</a> and use this code for showing view report data.</p>
  
  <pre><code>StiReport rpt2 = new StiReport();
  rpt2.Load(Application.StartupPath + "\\RPT\\RPTListPoorsantNamayandeh.mrt");
  
  rpt2.Compile();
  rpt2["namayandeh"] = comboPoorsantNamayandeh.Text;
  rpt2["StTarikh"] = StTarikh;
  rpt2["EnTarikh"] = EnTarikh;
  rpt2["tarikhGozaresh"] = tarikhGozaresh;
  rpt2["GozareshCode"] = GozareshCode;
  rpt2.RegData(dtRPTPoorsant);
  rpt2.Render();
  rpt2.Show();
  </code></pre>
  
  <p>the above code is true and now i'm working with Asp.net core , for reporting data i want use <a href="http://www.stimulsoft.com" rel="nofollow noreferrer">Stimulsoft</a>.In the example below show reporting file but i don't no how can i send DataSet or DataTable or Models to mrt file</p>
  
  <p>Controller :</p>
  
  <pre><code> public IActionResult GetReport()
          {          
              string reportString = System.IO.File.ReadAllText(_hostEnvironment.WebRootPath + "\\Reoprt\\ParametersSelectingCountry.mrt");
              return StiNetCoreViewer.GetReportResult(this, reportString);
          }
  
          public IActionResult ViewerEvent()
          {
              return StiNetCoreViewer.ViewerEventResult(this);
          }
  </code></pre>
  
  <p>index.chstml</p>
  
  <pre><code>@using Stimulsoft.Report.NetCore
  @Html.Stimulsoft().StiNetCoreViewer("NetCoreViewver1",new StiNetCoreViewerOptions()
  {
      Actions =
      {
          GetReport = "GetReport",
          ViewerEvent = "ViewerEvent"
      }
  })
  </code></pre>