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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void GeneraCredencial(string Matriculas)
        {
            AlumnosBus         alumnosBus;
            CredencialPrimaria credencialPrimaria;
            DataSet            dataSet;

            alumnosBus         = new AlumnosBus();
            credencialPrimaria = new CredencialPrimaria();
            dataSet            = new DataSet();
            try
            {
                dataSet = alumnosBus.ObtieneCredencialRpt(Matriculas);
                credencialPrimaria.SetDataSource(dataSet);
                credencialPrimaria.ExportToHttpResponse(ExportFormatType.PortableDocFormat, base.Response, false, "Credencial");
            }
            catch
            {
            }
        }