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