How to create reports in Birt and use in ASP.NET?

I submit a new report in the reports. My problem: I need to use Birt for reporting in ASP.NET. But it seems that Birt is only available in Java. I do not know how to use it in ASP.NET. I do not want to use Crystal reports as it is not free.

I also note that reporting in Birt is also not free using the Actuate API. Thus, any body with any idea about using Birt to design, design, and view reports in ASP.NET

I want features such as (Avg, Sums, Complex Formulas Work and the general functions of any reporting tool) to view data over the Web using ASP.NET through Birt reports.

+3
source share
1 answer

If you can install Java on your server along with .NET, you can simply run the BIRT server on localhost and the proxy server with .NET. Here's a (partial) sample from the MVC:

     private FileResult PdfTest(string reportPath, List<ReportParameter> parameters)
     {
        string url = "http://localhost:8080/birt/frameset?__report=test.rptdesign&sample=" + reportPath + "&__dpi=96&__format=pdf&__pageoverflow=0&__asattachment=true&__overwrite=false";
        url += urlParams;
        using (var wc = new System.Net.WebClient())
        {
            return File(wc.DownloadData(url), "application/pdf");
        }
    }
+5
source

All Articles