Esempio n. 1
0
        public InformeFichaAlumno(string idAlumno)
        {
            InitializeComponent();
            DataSet reporte = logPersonas.fichaAlumno(idAlumno);

            var reportPath = "GestionJardin.Reporte.Alumnos.fichaAlumno.rdlc";
            ReportDataSource sReportDataSource = new ReportDataSource();

            this.reportViewer1.LocalReport.ReportEmbeddedResource = reportPath;
            sReportDataSource.Name  = "DataSet1";
            sReportDataSource.Value = reporte.Tables[0];
            reportViewer1.LocalReport.DataSources.Add(sReportDataSource);
            this.reportViewer1.LocalReport.Print();
            this.reportViewer1.RefreshReport();
        }