title: javascript code for loading crystal report in asp.net mvc
body: <p>My question is related to this link : 
  <a href="https://stackoverflow.com/questions/348785/crystal-reports-in-asp-net-mvc?rq=1">Crystal Reports in ASP.NET MVC</a>
  As per one of teh answer by coderguy123
  I have written Action method at controller side ? But what will be the 
  javascript side code ( i will be using js file to invoke this Action method ) </p>
  
  <p>Also , return type of action method in following method is </p>
  
  <pre><code>public ActionResult Report()
  {
      ReportClass rptH = new ReportClass();
      rptH.FileName = Server.MapPath("[reportName].rpt");
      rptH.Load();
      rptH.SetDataSource([datatable]);
      Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
      return File(stream, "application/pdf");   
  }
  </code></pre>
  
  <p>File .. but when i call it from js file , it is giving error .. Not sure if return type matched with datatype file ... </p>
  
  <p>Basically , I want client side code to invoke this method and display the pdf file in new browser ? </p>