Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crFirma rpt = new crFirma();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        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.First(x => x.Fno == a);
            var lst = (from s in db.bgFirmalar
                       where s.Fno == a
                       select new { s.FirmaAdi, s.FirmaAdres, s.FirmaFaks, s.bgFirmaTipleri.Ftipi }).ToList();

            if (lst != null)
            {
                Fonksiyonlar.PrintYardim ch = new Fonksiyonlar.PrintYardim();
                DataTable dt = ch.ConvertTo(lst);
                cr.SetDataSource(dt);
                crPrint.ReportSource = cr;
            }
        }