How to create the report in the controller without the aspx

3 posts, 0 answers
  1. Diego
    Diego avatar
    2 posts
    Member since:
    Apr 2013

    Posted 26 Jun 2013 Link to this post

    How to create the report in the controller without the aspx?
    I made the following code below but I am not getting html print screen

    public ActionResult test() {          
               var instanceReportSource            = new Telerik.Reporting.InstanceReportSource();
               instanceReportSource.ReportDocument = new myReport();
                 
               ReportViewer report = new ReportViewer();
               report.ID           = "Teste";
               report.Width        = 100;
               report.ReportSource = instanceReportSource;
     
    return ??
    }
  2. Squall
    Squall avatar
    174 posts
    Member since:
    Feb 2011

    Posted 01 Jul 2013 Link to this post

    Why you have to do this? In this way you are breaking the MVC pattern. 
  3. DevCraft banner
  4. Diego
    Diego avatar
    2 posts
    Member since:
    Apr 2013

    Posted 01 Jul 2013 Link to this post

    the idea is not to use ASPX pages
Back to Top