pdf viewer

pdf viewer

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

Re: pdf viewer

Postby jds » Thu Aug 27, 2015 1:42 pm

my earlier simple way of viewing was for exemple :
WINEXEC("Sumatrapdf.exe test.pdf)
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Postby Antonio Linares » Thu Aug 27, 2015 1:58 pm

Try using:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: pdf viewer

Postby jds » Thu Aug 27, 2015 4: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é
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm

Re: pdf viewer

Postby karinha » Thu Aug 27, 2015 5:57 pm

Code: Select all  Expand view

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

Re: pdf viewer

Postby dutch » Fri Aug 28, 2015 7:25 am

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

Re: pdf viewer

Postby Antonio Linares » Fri Aug 28, 2015 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: pdf viewer

Postby jds » Fri Aug 28, 2015 8:31 am



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

Re: pdf viewer

Postby jds » Sat Aug 29, 2015 5: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
jds
 
Posts: 122
Joined: Sat Dec 05, 2009 12:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 27 guests