Lista...estoy poniendo en un winform un reporte con reporting services. Al mismo, lo lleno a travez de un SP.
Por alguna razon el reporte me aparece vacio, pero lo raro es que si ejecuto el SP en sql me trae datos.. Copio el codigo aca abajo a ver si alguno me puede ayudar....Gracias!!!!!!!!! DataSet dsInfo = new DataSet("DataSet_InformeCaja_YC_Reporte_InformeCaja"); SqlDataSource sqlDataSource = new SqlDataSource(); sqlDataSource.ConnectionString = "Integrated Security=SSPI;Data Source=LELE_VAIO;Initial Catalog=yc;Persist Security Info=false;Application Name=ERP20;User ID=administrador;password="; sqlDataSource.SelectCommandType = SqlDataSourceCommandType.StoredProcedure; sqlDataSource.SelectCommand = "YC_Reporte_InformeCaja"; sqlDataSource.SelectParameters.Add(new Parameter("idObra", DbType.Int32, "9")); sqlDataSource.SelectParameters.Add(new Parameter("fechaHasta", DbType.DateTime, "2010/01/01")); sqlDataSource.SelectParameters.Add(new Parameter("orden", DbType.String, "asc")); BindingSource bindingSource = new BindingSource(); bindingSource.DataSource = sqlDataSource; ReportDataSource reportDataSource = new ReportDataSource(); reportDataSource.Name = "DataSet_InformeCaja_YC_Reporte_InformeCaja"; reportDataSource.Value = bindingSource; localReport.DataSources.Add(reportDataSource); //Agrego los parametros al reporte ReportParameter[] param = new ReportParameter[2]; param[0] = new ReportParameter("Fecha", "01/01/2010"); param[1] = new ReportParameter("Obra", "test"); localReport.SetParameters(param); // Refresh the report rptInforme.RefreshReport();