Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CardFormN_025u rpt = new CardFormN_025u();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        public void PrintCards(IEnumerable <tblPatientInfo> patients)
        {
            var gquery = from ds in patients
                         group ds by ds.Kind;// into kindGroup

            foreach (var patItems in gquery)
            {
                ReportClass xReport = new CardFormN_025u();
                var         xSource = patItems.Select(ptnt => new CardFormN_025uAdapter(ptnt));
                try
                {
                    xReport.SetDataSource(xSource);
                    xReport.PrintToPrinter(CardFormN_025uPrinterSettings, CardFormN_025uPrinterSettings.DefaultPageSettings, false);
                }
                finally
                {
                    xReport.Dispose();
                }
                //foreach (var patient in patItems)
                //    patient.Printed = true; // будет использоваться для распечатки листа пациентов
            }
        }