Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #143

Re: shell function and pdf in vb6

From Dee Earley <dee.earley@icode.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Re: shell function and pdf in vb6
Date 2011-05-09 19:06 +0100
Organization Aioe.org NNTP Server
Message-ID <iq9aes$1ks$1@speranza.aioe.org> (permalink)
References <a67gs6d4vmb1bpnck3ne48gatehvvjqplt@4ax.com>

Show all headers | View raw


On 09/05/2011 18:02, scbs29 wrote:
> Hello all
> As part of a program which I am writing for my wife's craft pictures I
> have just found a need to display pdf files.
> I can do this ok (with foxit reader) using code of the form
> strInstructions = """c:\program files\foxit software\foxit
> reader\foxit reader.exe"""
> strInstructions = strInstructions&  " "&  """"&  filename&  """"
>
> so that for a file c:\a_folder\another_folder\filename
> the full call would be
> retval = shell("c:\program files\foxit software\foxit reader\foxit
> reader.exe" "c:\a_folder\another_folder\filename")
>
> Surely there is a more elegant way of doing this ?
> Can anyone advise ?

Use ShellExecute()
http://hashvb.earlsoft.co.uk/ShellExecute

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

shell function and pdf in vb6 scbs29 <scbs29@fred.talktalk.net> - 2011-05-09 18:02 +0100
  Re: shell function and pdf in vb6 Dee Earley <dee.earley@icode.co.uk> - 2011-05-09 19:06 +0100
    Re: shell function and pdf in vb6 scbs29 <scbs29@fred.talktalk.net> - 2011-05-09 20:06 +0100

csiph-web