public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rStokGiris rpt = new rStokGiris(); rpt.Site = this.Site; return(rpt); }
private void StokGiris() { frmStokGiris stk = Application.OpenForms["frmStokGiris"] as frmStokGiris; rStokGiris rsg = new rStokGiris(); var lst = (from s in db.vwStokGiris where s.StokGNo == int.Parse(MainPage.Aktar) select s).ToList(); if (lst != null) { PrintYardim ch = new PrintYardim(); //ch : crystal Help kısaltması. DataTable dt = ch.ConverTo(lst); rsg.SetDataSource(dt); crvPrint.ReportSource = rsg; } MainPage.Aktar = ""; }