PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD22] iPageNum() used in the "opening" method of the PDF report produce an unpredictable document.
[WD22] iPageNum() used in the "opening" method of the PDF report produce an unpredictable document.
Iniciado por fulvio.ruberti, 21,feb. 2018 12:45 - No hay respuesta
Publicado el 21,febrero 2018 - 12:45
Calling the "iPageNum()" function in the "Opening" method of a report destined to generate a PDF
that simultaneously prints a Background Form, generates a different document from the second
execution of the report, also the file name of the PDF file created changing
from: "report_name_declared_in_project.pdf" to: "Document.pdf".

If the iPageNum() call is present, the first PDF document generated when the program was run
is correct (form and fields are correctly positioned), from the second execution of the report,
without leaving the program, the module and fields are moved to the right and down, as if it were set
a margin at the top and on the left of the form. The name of the PDF document created is: "Document.pdf".

Everything is correct if the iPageNum() function is not used.

Anyone know the problem?
Is there a workaround?