FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour pdf
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
pdf
Posted: Tue Mar 23, 2010 05:35 PM

txt files can simply be printed from Harbour via Winexec("notepad.exe XXX.txt")
How can pdf files been printed from Harbour?

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: pdf
Posted: Tue Mar 23, 2010 06: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 (fw): Select all Collapse
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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: pdf
Posted: Tue Mar 23, 2010 07: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)

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: pdf
Posted: Tue Mar 23, 2010 07: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)

Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: pdf
Posted: Tue Mar 23, 2010 08: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 .

Continue the discussion