PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → windev 18. Print a generated pdf
windev 18. Print a generated pdf
Débuté par Noel Tanti, 16 avr. 2014 17:01 - 4 réponses
Posté le 16 avril 2014 - 17:01
Hi,

I am generating reports to pdf and that is no problem but I would like to print them immediatley after. What would be the command to print a generated pdf to printer?

Thanks
Noel
Posté le 16 avril 2014 - 19:19
Hi Noel,

You can call ShellExecute() to ask the default PDF program to print the PDF: http://doc.windev.com/en-US/…

The other (better?) solution is to generate your report in PDF, then generate it again and send it to the printer directly (using iDestination again): http://doc.windev.com/en-US/…

Hope this helps and best regards,
Alexandre Leclerc
Posté le 16 avril 2014 - 20:15
Hi Noel

it depends if you want to print it outside of windev (ie calling an
external tool, installed or not, etc) or INSIDE windev... In that last
case you can either print the sam report a second time with another
target, or read the pdf page by page in an image field (..numpage) save
the imge (dsaveImagexxx) and print the image (iprintimage)

Best regards


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

NEW: WXShowroom.com is available: Show your projects!
More information on http://www.fabriceharari.com


On 4/16/2014 9:01 AM, Noel Tanti wrote:
Hi,

I am generating reports to pdf and that is no problem but I would like
to print them immediatley after. What would be the command to print a
generated pdf to printer?

Thanks
Noel
Posté le 23 avril 2014 - 05:40
thanks, i often take your method, generate pdf and send it to printer, is there a way to directly print a generated pdf such as scanning a pdf and then print out?
Posté le 23 avril 2014 - 06:27
Hello FDimage

There are several examples in Windev that deal with PDF extraction and manipulation and also complete examples on scanning and printing.

Regards
Al