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


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

Re: shell function and pdf in vb6

From scbs29 <scbs29@fred.talktalk.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: shell function and pdf in vb6
Message-ID <fpegs6dp3ntg5149rcfroq1ppposdf6brh@4ax.com> (permalink)
References <a67gs6d4vmb1bpnck3ne48gatehvvjqplt@4ax.com> <iq9aes$1ks$1@speranza.aioe.org>
Organization Forte Inc. http://www.forteinc.com/apn/
Date 2011-05-09 20:06 +0100

Show all headers | View raw


On Mon, 09 May 2011 19:06:23 +0100, Dee Earley
<dee.earley@icode.co.uk> wrote:

>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

Thanks for the reply.
That works fine.

remove fred before emailing
Registered Linux User 490858

Back to comp.lang.basic.visual.misc | Previous | NextPrevious 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