PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Multiple page report in pdf using webdev 24
Multiple page report in pdf using webdev 24
Iniciado por mimmo, 04,ene. 2021 11:29 - No hay respuesta
Publicado el 04,enero 2021 - 11:29
Good morning everyone

I read the discussion with the title "Multiple page report in pdf using webdev 15" but I was unable to print as I wanted
I have to put 5 reports in a PDF file
I did as Fabrice says but it happens to me that the first page is displayed and the following ones go to print but on the web the server would print and it is a problem.
I wrote this



sTitolo is string = "Breakfast Diet 1"
MyUniqueFile is string = fDataDir () + "\" + DateSys () + TimeSys () + ".pdf"

iDestination (iPDF, MyUniqueFile)

iInitReportQuery (RPT_dieta1, gnIdcolazione)
iPrintReport (RPT_dieta1, sTitolo)


sTitolo = "Diet 1 morning snack"
iDestination (iPDF, MyUniqueFile)
iInitReportQuery (RPT_dieta1, idspuntmatt)
iPrintReport (RPT_dieta1, sTitolo)

FileDisplay (MyUniqueFile, "application / pdf")

fDelete (MyUniqueFile)

Now I have only tried with two prints but sometimes I have to do 7 all the same but with different data
Where am I wrong?
Thanks

Mimmo