Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Problem in CrystalReportViewer.load

$
0
0

Hello

i added report viewer in my WPF window and add a "crystalreport.rpt" in root of my project 

in code behind i add this 

 markazbam018Entities db = new markazbam018Entities(); 
        public MainWindow()
        {
            InitializeComponent();
            CrystalReport1 cr1 = new CrystalReport1();
           ReportDocument report = new ReportDocument();
           report.Load("CrystalReport1.rpt");
           report.SetDataSource(from r in db.PersonnelPaidItemSalaries
                                where r.f_PersonCode == "F8FAF927E190C"
                                select r);

           CRViewr.ViewerCore.ReportSource = report;
        }

but in load i get error

whats my mistake ?

thanks


Hossein Aftabi http://www.internationalsell.com


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>