FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour pdf viewer
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

pdf viewer

Posted: Thu Aug 27, 2015 12:19 PM

can anyone tell me a simple way to show/view a pdf file from within a windows program
my earlier way with Sumatrapdf.exe don't work anymore (in windows 7?)

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

Re: pdf viewer

Posted: Thu Aug 27, 2015 01:42 PM

my earlier simple way of viewing was for exemple :
WINEXEC("Sumatrapdf.exe test.pdf)

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: pdf viewer

Posted: Thu Aug 27, 2015 01:58 PM

Try using:

ShellExecute( ,"open", "test.pdf",,,1 )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

Re: pdf viewer

Posted: Thu Aug 27, 2015 04:17 PM

Antonio,
Thanks for your fast support but it does not work with Shellexecute()
Should there be an other small pdf viewer that works (since 10 years) like Sumatrapdf
I think the actual Sumatra version is not (yet) compatible with Win 7 or 8
Gracias por su ayuda
José

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: pdf viewer

Posted: Thu Aug 27, 2015 05:57 PM
Code (fw): Select all Collapse
   NFEVisualSUM := "C:\NFEPDF\"+"CCE"+ALLTRIM( STR( nNumNfeSUM ) )+".PDF"

   // LANG = LANGUAGE
   WinExec( cDirExe+"sumatra\sumatrapdf.exe -reuse-instance -lang pt "+NFEVisualSUM)   //-restrict -fullscreen


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM

Re: pdf viewer

Posted: Fri Aug 28, 2015 07:25 AM
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: pdf viewer

Posted: Fri Aug 28, 2015 07:46 AM

You can open any PDF using Chrome, so if Chrome is installed then it can be used as a PDF viewer

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

Re: pdf viewer

Posted: Fri Aug 28, 2015 08:31 AM
dutch wrote:It's still work for me even Windows 10.
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26194&hilit=dutch+pdf&start=15#p143855


Hallo Dutch
Can you show me a simple example with sumatrapdf
Kind regards
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM

Re: pdf viewer

Posted: Sat Aug 29, 2015 05:54 PM

Hallo pdf viewers
My old easy way of pdf viewing with sumatrapdf.exe (version 2.2. and later) works (again) by deleting the Adobe Acrobat reader program so that sumatrapdf.exe becomes the default pdf reader
the code is simply: WINEXEC("sumatraPDF.exe ...\test.pdf")
Kind regards and a Sunny WE

Continue the discussion