Alaska Software Inc. - runshell for pdf files
Username: Password:
AuthorTopic: runshell for pdf files
Nevzat Kanburrunshell for pdf files
on Sun, 07 Jan 2024 10:32:59 +0300
Hi
How can I use runshell to view acrobat pdf files (acrobat already 
installed) ?

rgds
Nevzat
Jorge L BorlandoRe: runshell for pdf files
on Mon, 08 Jan 2024 19:09:33 -0300
Hi Nevzat,

you can to use this code

Function OpenFileAsCmd( cFile, nComo, bBlock, cOper, cParam )
   Local nDll
   nComo := If( (nComo = NIL), SW_SHOWMAXIMIZED, nComo )
   cOper := If( (cOper = NIL), 'open', cOper )
    los valores posibles de cOper son : open, print, edit, explore, find
   nDll  := DllLoad( 'SHELL32.DLL' )
   dllCall( nDll, DLL_STDCALL, 'ShellExecuteA',, cOper, cFile, cParam,, 
nComo )
   dllUnLoad( nDll )
   Return ( NIL )

https://learn.microsoft.com/es-es/windows/win32/api/shellapi/nf-shellapi-shellexecutea

With this code you can open any file as in the console,
which has a program associated with it that allows it to be opened

best regards


"Nevzat Kanbur" escribió en el mensaje de 
noticias:61623fac$1097a524$ac2e1@news.alaska-software.com...

Hi
How can I use runshell to view acrobat pdf files (acrobat already
installed) ?

rgds
Nevzat
Jim LeeRe: runshell for pdf files
on Fri, 12 Jan 2024 00:39:50 +0100
hii,

> How can I use runshell to view acrobat pdf files (acrobat already 
> installed) ?

you can use ActiveX Sample \Source\samples\activex\acrobat\main.prg