Luego he migrado mi proyecto a Visual Studio 2019 y he instalado por Nuget Microsoft.Report.Vewer v.11 para mostrar mis reportes, pero despues de unos dias, me encuentro el siguiente problema.
PROBLEMA : Al hacer con Visual Studio 2019, cambios en algunos de mis reportes .rdlc al guardar estos, eran actualizados a la nueva versión de VStudio 2019, y no podria ver dichos reportes en mi Report.Viewer, obtengo el siguiente error :
The definition of this report is not valid or supported by this version of Reporting Services.
The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporti...
CAUSA : EL problema está en los reportes que tienen PARÁMETROS al ser modificados, son convertidos a una versión superior, el cual el Report viewer 11 utilizado NO puede mostrarlos.
Si se abre el reporte .rdlc con NotePad, asi se ve antes de convertirse:
Report xmlns=http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition
Reporte luego de convertirse. Este ya no funciona en el Report Viewer
Report xmlns=http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition
SOLUCIÓN : Después de pasar horas buscando, encuentro que la solución es utilizar el siguiente Viewer : Microsoft.ReportingServices.ReportWiewerControl.WebForms v.150. Por lo que se debe quitar por Nuget el antiguo Report Viewer 11 e instalar este nuevo.
Luego de instalarlo correctamente va a ver el control asi.
Ahora debe buscarse en todas las paginas donde se utilizaba el anterior Report Viewer y reemplazarlo por el nuevo Microsoft.ReportingServices.ReportWiewerControl.
y listo, solucionado el problema.
No hay comentarios.:
Publicar un comentario