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


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

shell function and pdf in vb6

From scbs29 <scbs29@fred.talktalk.net>
Newsgroups comp.lang.basic.visual.misc
Subject shell function and pdf in vb6
Message-ID <a67gs6d4vmb1bpnck3ne48gatehvvjqplt@4ax.com> (permalink)
Organization Forte Inc. http://www.forteinc.com/apn/
Date 2011-05-09 18:02 +0100

Show all headers | View raw


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 ?

TIA

remove fred before emailing
Registered Linux User 490858

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