Excel
(1)
Adobe
(1)
AutoCAD
(1)
Database
(1)
ShellExecute
(1)
Acrobat
(1)
Windows
(1)
Interpreter
(1)

Execute PDF Files from VB6

Asked By LG
15-Jan-10 10:55 PM
If I want to "Execute PDF Files from VB6" application I am using SHELL
command, but I have to declare "two paths and files": .EXE Acrobat File Path
and File itself; and .PDF File Path and File itself, as shows:

Var = SHELL("C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.EXE" + " " +

Is there a way to use a "Short Path", something like to "DoubleClick" the
file in Windows Explorer an it automatically recognizes file type and invokes
the "interpreter" like Acrobat or other?

Beforehand, thank you very much.

LG wrote:Take a look at ShellExecute() WinAPI.

Ralph replied to LG
16-Jan-10 01:10 AM
Take a look at ShellExecute() WinAPI.
(Also the verb parameter may be of interest.)

Many examples on the web, here is one:
http://www.vbaccelerator.com/codelib/shell/shellex.htm

-ralph

Ralph:Once again thank you very much for your quick help.

LG replied to Ralph
18-Jan-10 08:26 PM
Ralph:

Once again thank you very much for your quick help. I was all weekend
installing routines following this technique: Images and other documents are
stored in specific folders in server, locations of those files in database.
That is where your last answer was very useful, because users works with PDF,
AutoCAD, Corel, Excel, etc.

I have noted you are a "work-coholic" person; I am too. I appreciate all
your efforts to support our requests. "Mi casa, tu casa".
Post Question To EggHeadCafe