Mehrdad Ghaffari
Mehrdad Ghaffari

Reputation: 228

Devexpress xtrareport doesn't show any thing in my print

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

enter image description here

But the print doesn't show any data . enter image description here

Upvotes: 1

Views: 1564

Answers (1)

Ehsan Akbar
Ehsan Akbar

Reputation: 7301

I think you should using object binding source :

https://documentation.devexpress.com/#XtraReports/CustomDocument7547

Upvotes: 1

Related Questions