This is a migrated thread and some comments may be shown as answers.

How to create the report in the controller without the aspx

2 Answers 54 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 26 Jun 2013, 05:21 PM
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 Answers, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 01 Jul 2013, 08:07 AM
Why you have to do this? In this way you are breaking the MVC pattern. 
0
Diego
Top achievements
Rank 1
answered on 01 Jul 2013, 11:12 AM
the idea is not to use ASPX pages
Tags
Report Designer (standalone)
Asked by
Diego
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Diego
Top achievements
Rank 1
Share this question
or