Reputation: 2890
I am tottaly a new bie in Reporting. My problem is , I need to use Birt for reporting in ASP.NET . But seems that Birt is only available in Java. I don't know how to use it in ASP.NET . I don't want to use Crystal reports as Its not free.
I also observe that designing reports in Birt also not free via Actuate API. So,any body having any idea about the usage of Birt for developing,designing and viewing reports in ASP.NET
I want the functionality like ( Avg, Sums, Complex Formulas Work , and generic features of any reporting tool ) in order to view the data over Web using ASP.NET via Birt Reports.
Upvotes: 3
Views: 5349
Reputation: 3607
If you can install Java on your server alongside .NET, you can just run the BIRT server on localhost and proxy to it from .NET. Here's a (partial) sample from an MVC controller:
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");
}
}
Upvotes: 6