PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How to print a pdf file ?
How to print a pdf file ?
Iniciado por software, 14,jun. 2016 09:04 - 5 respuestas
Miembro registrado
27 mensajes
Publicado el 14,junio 2016 - 09:04
Hi,
I simply want to print a specific pdf file already created in a specific directory to a printer.
How can i do that in an easy way in windev ?

Can you show me some examples ?

Thanks in advance,

Eric
Publicado el 14,junio 2016 - 15:22
Hi Eric,

put an image field of the right size (should be the size of your output
in pixels) outside screen

load the pdf in it

loop on the pages with ..numpage

save each page as an image with dsaveimagepng

print each page with iprintimage of the png

that's all

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com
Miembro registrado
27 mensajes
Publicado el 15,junio 2016 - 14:49
Thanks Fabrice, i will try this solution :)
Miembro registrado
27 mensajes
Publicado el 15,junio 2016 - 16:18
Hi Fabrice,

Is there no other way to print a pdf already created to a printer ?
Your solution is a bit complcated, my pages are not printed recto-verso ?

Is there no instruction to print any pdf file in Windev ?

Thanks in advance,

Eric
Publicado el 15,junio 2016 - 17:15
Hi


Is there no other way to print a pdf already created to a printer ?


Directly in windev no..

> Your solution is a bit complcated, my pages are not printed recto-verso ?
That about 15 lines of code, so I do not consider that complicated...

As for recto-verso, that's a printer setting and a therefore a
completely separate question. Look at iCOnfigure for that.

Is there no instruction to print any pdf file in Windev ?


Nope

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com
Publicado el 05,febrero 2018 - 16:04
ShellExecute("c:\temp2\test.pdf","print")

Philip