public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { prueba1 rpt = new prueba1(); rpt.Site = this.Site; return(rpt); }
private void frmReporteAutor_Load(object sender, EventArgs e) { AutorLN aut = new AutorLN(); DSAutor ds = new DSAutor(); try { prueba1 rpt = new prueba1(); rpt.SetDataSource(aut.obtenerAutor()); crystalReportViewer1.ReportSource = rpt; } catch (Exception men) { MessageBox.Show(men.ToString()); } }