public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rpclientes rpt = new rpclientes(); rpt.Site = this.Site; return(rpt); }
private void btnRepClientes_Click(object sender, EventArgs e) { query = "exec RPPROVEEDOR"; Visualizador_de_Reportes frmRep = new Visualizador_de_Reportes(); rpclientes rep1 = new rpclientes(); rep1.SetDataSource(Connection.getData(query)); frmRep.ReportExporta = rep1; frmRep.ShowDialog(); frmRep.Focus(); }