pdf

pdf

Postby jds » Tue Mar 23, 2010 5:35 pm

txt files can simply be printed from Harbour via Winexec("notepad.exe XXX.txt")
How can pdf files been printed from Harbour?
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf

Postby driessen » Tue Mar 23, 2010 6:27 pm

jds,

You can find a free PDF-viewer at http://blog.kowalczyk.info/software/sumatrapdf/index.html.

It can be used as a automated print instruction for PDF-files.

I recalled the executable to "PRINTPDF.EXE" to be used in my application.

The source I use is :
Code: Select all  Expand view
WAITRUN("..\UTILIT~1\PrintPDF.exe -Print-to-default -exit-on-print " + dNameDoc,1)
where dNameDoc contains the pathname of the PDF-file to be printed.

Good luck.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: pdf

Postby jds » Tue Mar 23, 2010 7:13 pm

I made a mistake in my question: I am looking for a way to READ pdf files from my harbour applications (jds belgium NL)
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf

Postby jds » Tue Mar 23, 2010 7:37 pm

OK I found the way how to read pdf files also. Thank you for the reference to a simple pdf reader (sumatrapdf).
Jds (José Deschutter - belgium)
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf

Postby Jack » Tue Mar 23, 2010 8:55 pm

Other question about PDF .

How to convert in batch a word or excel file to PDF .

Winexec(W2pdf.exe "doc.doc" "doc.pdf")

Thanks for your help .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 100 guests