Welcome! Log In Create A New Profile

Advanced

Print

Posted by Filipe Madureira.pcs.crosspost 
Filipe Madureira.pcs.crosspost
Print
August 22, 2008 12:05PM
Hi,

I have a PDF file that I receive by e-mail in my application.
How can I print this PDF file in Windev?

I can only find functions for printing reports or creating a document for printing, but nothing for printing a PDF file or other kind of files.

Thanks


Message forwarded from pcsoft.us.windev
Al
Re: Print
August 22, 2008 12:42PM
Hello Filipe

Try Shellexecute() with the "print" verb.


Regards
Al
Stefan Bentvelsen
Re: Print
August 25, 2008 03:35PM
Hi Filipe,

in WinDev12 it is possible to print a pdf-file in an image-control. May be, you have to play with the fact that you have more than one page. Printing one page works, I've tested it.
Aelfassi
Re: Print
August 26, 2008 08:51PM
Hi,

To print PDF from within your application, you can download a program called pdfp.exe from esnips.com.
You can use this small program (46Kb) from a command line to send the PDF file to the printer ex: PDFP.EXE ITEX.PDF and that's it.

Enjoy!!
Marc De Swert
Re: Print
August 29, 2008 11:13AM
I have a program that create pdf files tru a JAva program
and drop then in a folder located at gv_ADOBEPath


during the process i open the pdf file an print this file
you need the AcroRd32.exe

gv_ADOBEEXe = C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe

gv_ADOBEPath =\\ACLZPSFS\Fleems\FLEEMSBE\TEST\FLEEMSPDF\

lv_CastXML = CO_26_08CO001208 the created file


lv_PrintView = gv_ADOBEExe + " " + gv_ADOBEPath + lv_CastXML + ".PDF"

so lv_PrintView is then =
"C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe \\ACLZPSFS\Fleems\FLEEMSBE\TEST\FLEEMSPDF\CO_26_08CO001208.PDF"

ExeRun(lv_PrintView)


it works fine for us



Marc :cool:
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: