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