Page 1 of 1
pdf
Posted: Tue Mar 23, 2010 5:35 pm
by jds
txt files can simply be printed from Harbour via Winexec("notepad.exe XXX.txt")
How can pdf files been printed from Harbour?
Re: pdf
Posted: Tue Mar 23, 2010 6:27 pm
by driessen
jds,
You can find a free PDF-viewer at
http://blog.kowalczyk.info/software/sum ... 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
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.
Re: pdf
Posted: Tue Mar 23, 2010 7:13 pm
by jds
I made a mistake in my question: I am looking for a way to READ pdf files from my harbour applications (jds belgium NL)
Re: pdf
Posted: Tue Mar 23, 2010 7:37 pm
by jds
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)
Re: pdf
Posted: Tue Mar 23, 2010 8:55 pm
by Jack
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 .