PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 28 → Llamado de reportes WDE externos a un proyecto
Llamado de reportes WDE externos a un proyecto
Débuté par Andres Zerda, 20 avr. 2023 19:32 - 2 réponses
Posté le 20 avril 2023 - 19:32
Buenos días

Actualmente tengo un un ejecutable en el que llamo un reporte cualquiera, el cual no se encuentra incluido en el proyecto ( y no debe estar), puesto que este puede cambiar según la necesidad de un cliente (pueden ser varios, indeterminados).

Requiero llamar este reporte y que me muestre una vista preliminar, sin embargo, genera un error que indica que no encuentra el reporte (Confirmo el reporte está en la carpeta designada)

Nombre_reporte is string = fCurrentDir()+ "\"+ mi_reporte

iPrintReport(Nombre_reporte)

el error exacto es

"Unable to load code of 'c:\mi_derectorio\mi_reporte.wde' element.

Como lo puedo solucionar sin necesidad de integrar los reportes al proyecto?

Gracias
Posté le 28 avril 2023 - 16:50
Buenas tardes

He resuelto el tema con apoyo de otros programadores en Windev

Solo se debe habilitar esta opción




Membre enregistré
1 message
Posté le 24 mai 2023 - 06:16
Hello, verify the file path: Double-check that the file path you are constructing is correct. Make sure the file extension is accurate and the path separators are properly formatted. In your code snippet, you are using backslashes to separate the path components. Ensure that the value of fCurrentDir() and my_report are correct and that they combine to form a valid file path.

Check file permissions: Ensure that the user running the executable has sufficient permissions to access the report file. Make sure the file is not locked by another process and that the user has read access to it. https://www.caregiverconnect.net/