Reputation: 228
i want to print a report using xtrareport so i pass my datasource as you can see here :
Report.Material.MRC report = new MRC();
List<MaterialRequestContractor> lst=new List<MaterialRequestContractor>();
lst.Add(_materialRequestContractorRepository.Get().ToList().First());
report.DataSource =lst;
// Show the print preview.
ReportPrintTool pt = new ReportPrintTool(report);
pt.ShowPreview();
In my report design i add my Model as an objectmodel
But the print doesn't show any data .
Upvotes: 1
Views: 1564
Reputation: 7301
I think you should using object binding source :
https://documentation.devexpress.com/#XtraReports/CustomDocument7547
Upvotes: 1