public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { StokDurumListesi rpt = new StokDurumListesi(); rpt.Site = this.Site; return(rpt); }
private void StokListesi() { frmStokDurum kl = Application.OpenForms["frmStokDurum"] as frmStokDurum; //Açık olan form için yazıyoruz.. StokDurumListesi cr = new StokDurumListesi(); //cr crystal report kısaltması.. var lst = (from s in _db.stStokDurums //bu bilgiyi bgku select s).ToList(); if (lst != null) { PrintYardım ch = new PrintYardım(); //ch crystal help kısası.. DataTable dt = ch.ConvertTo(lst); //listeyi crystal report a göre çevirsin.. cr.SetDataSource(dt); crvPrint.ReportSource = cr; } }