Skip to Main Content

Español

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problemas de Impresión en PDF con el paquetejrxml2pdf me da error:

Luis HorcajadasAug 22 2022 — edited Aug 22 2022

Cuando intento imprimir me da el siguiente error:
1 error has occurred
Error: SyntaxError: Unexpected token '%', "%PDF-1.3 "... is not valid JSON
Para simplificar, en el entorno de pruebas de oracle, he importado la aplicación que trae como ejemplo el paquete en el fichero apex/f114,sql, con lo que carga los objetos, tablas, etc y ya no hay que hacer la instalación del paquete. Tiene apex 22.1.3
Pruebo la aplicación de ejemplo y funciona, pero cuando en una página nueva, creo un botón, que lanza un proceso con el siguiente código me da el error indicado , teniendo en cuenta que estoy lanzando un report que hay en la tabla JRXML_REPORT_DEFINITIONS y que funciona en el ejemplo (con lo que el report en la tabla está bien) y el código PL-SQL es el siguiente:
DECLARE
 vcName VARCHAR2(200);
 lParams WKSP_APEXAGSNJ.PK_JRXML2PDF_REPGEN.TPARAMLIST;
 bl BLOB;
BEGIN
 vcName := 'aggregation';
 bl := WKSP_APEXAGSNJ.PK_JRXML2PDF_REPGEN.FK_RUN(i_vcName=>vcName);
 WKSP_APEXAGSNJ.PK_JRXML2PDF_REPGEN.PR_SHOW_REPORT(bl);
 APEX_APPLICATION.STOP_APEX_ENGINE;
END;
Cual es el motivo por el que con este código me da error??
He tratado de simplificar porque en mi entorno de PRO, con un report hecho jasperStudio por mi meda el mismo error, con la versión 22.1 de APEX.

Muchas gracias, un saludo.

DECLARE
  vcName  VARCHAR2(200);
  lParams SCHEMA.PK_JRXML2PDF_REPGEN.TPARAMLIST;
  bl BLOB;
BEGIN
  vcName := 'nombre-reporte';
  bl := SCHEMA.PK_JRXML2PDF_REPGEN.FK_RUN(i_vcName=>vcName);
  SCHEMA.PK_JRXML2PDF_REPGEN.PR_SHOW_REPORT(bl);
  APEX_APPLICATION.STOP_APEX_ENGINE;
END;
This post has been answered by Luis Horcajadas on Aug 22 2022
Jump to Answer
Comments
Post Details
Added on Aug 22 2022
3 comments
1,009 views