pdf viewer

Post Reply
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

pdf viewer

Post by jds »

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?)
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Post by jds »

my earlier simple way of viewing was for exemple :
WINEXEC("Sumatrapdf.exe test.pdf)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: pdf viewer

Post by Antonio Linares »

Try using:

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

Antonio Linares
www.fivetechsoft.com
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Post by jds »

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é
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: pdf viewer

Post by karinha »

Code: Select all

   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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: pdf viewer

Post by dutch »

It's still work for me even Windows 10.
http://forums.fivetechsupport.com/viewt ... 15#p143855
Regards,
Dutch

FWH 19.01 / 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)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: pdf viewer

Post by Antonio Linares »

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
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Post by jds »

dutch wrote:It's still work for me even Windows 10.
http://forums.fivetechsupport.com/viewt ... 15#p143855
Hallo Dutch
Can you show me a simple example with sumatrapdf
Kind regards
jds
Posts: 106
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Post by jds »

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
Post Reply