public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crfirma rpt = new crfirma(); rpt.Site = this.Site; return(rpt); }
private void Firmalar() { Model.FirmaBul lst = Application.OpenForms["FirmaBul"] as Model.FirmaBul; crfirma cr = new crfirma(); var src = (from s in db.bgFirmalar select s).ToList(); if (src != null) { Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim(); DataTable dt = ch.ConvertTo(src); cr.SetDataSource(dt); crFirma.ReportSource = cr; } }
private void Firma() { Bilgi.frmFirma frm = Application.OpenForms["frmFirma"] as Bilgi.frmFirma; crfirma cr = new crfirma(); int a = int.Parse(txtbox.Text); // var lst = db.bgFirmalar.ToList(); var lst = (from s in db.bgFirmalar where s.Fno == a select new { s.FirmaAdi, s.FirmaAdres, s.FirmaFax, s.BgFirmaTipi.Ftipi }).ToList(); if (lst != null) { Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim(); DataTable dt = ch.ConvertTo(lst); cr.SetDataSource(dt); crFirma.ReportSource = cr; } }