public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteedeClientes rpt = new ReporteedeClientes(); rpt.Site = this.Site; return(rpt); }
public void CargarDatos(ClientesBL clientesBL) { var bindinSource = new BindingSource(); bindinSource.DataSource = from c in clientesBL.ListadeClientes select new { Foto = c.Foto, Id = c.Id, Nombre = c.Nombre, Telefono = c.Telefono, Ciudad = c.Ciudad, Direccion = c.Direccion, Categoria = c.Categoria }; var reporte = new ReporteedeClientes(); reporte.SetDataSource(bindinSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }