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