I wish to create reports (mainly PDF) from my business entity objects. The features I would like are:
One such product is the ReportViewer that comes as part of Visual Studio. But I was wondering what other products were out there and the reasons you decided to use them instead of the bundled ReportViewer.
we are useing stimulsoft in our project,
DevExpress XtraReports is a famous reporting tool too
Also I like this open source lib for wpf reporting
With XtraReports from DevExpress you can do this task easily:
public static XtraReport CreateReport(object data, string dataMember)
{
XtraReport result = new XtraReport();
result.Name "the_report_name";
result.LoadLayout(@"c:\the_path\the_repx_template.repx");
result.DataSource = data;
if ( !string.IsNullOrEmpty(dataMember) ) { result.DataMember = dataMember; }
return result;
}
Then you can use one of the following methods for exporting your report to the desired format (apply to XtraReport class):
public void ExportToPdf(string path);
public void ExportToRtf(string path);
public void ExportToText(string path);
public void ExportToXls(string path);
public void ExportToXlsx(string path);
public void ExportToHtml(string path);
public void ExportToCsv(string path);
public void ExportToImage(string path, ImageFormat format);
I have commented about this at: Alternative to Excel as ASP.Net Report Generator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With