Home All Groups Group Topic Archive Search About
Author
31 May 2005 1:38 AM
Ant
Hi,
I'm using the common dialog control to open PDF & text files. They don't
need to be embedded into forms or anything, simply opened from the
application. Once I've chosen the file, hoe do I then open it to be
displayed? I tried using shell, but that only appears to work for .exes.
Hope someone can throw some light in this direction.

Thanks very much for any fothcoming help
Ant

Author
31 May 2005 2:00 AM
Veign
Look up the ShellExecute API.

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


Show quoteHide quote
"Ant" <A**@discussions.microsoft.com> wrote in message
news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> Hi,
> I'm using the common dialog control to open PDF & text files. They don't
> need to be embedded into forms or anything, simply opened from the
> application. Once I've chosen the file, hoe do I then open it to be
> displayed? I tried using shell, but that only appears to work for .exes.
> Hope someone can throw some light in this direction.
>
> Thanks very much for any fothcoming help
> Ant
Author
1 Jun 2005 3:10 AM
Ant
Hi,
Thanks for the response. How do I use the ShellExecute API? What is an API?
Is it something I reference? If you can give me a brief example it would be
most helpful. I found it in MSDN, but simply typing ShellExecute with the
apporpriate arguments threw up an error.
Thanks very much for your time
Ant



Show quoteHide quote
"Veign" wrote:

> Look up the ShellExecute API.
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Ant" <A**@discussions.microsoft.com> wrote in message
> news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> > Hi,
> > I'm using the common dialog control to open PDF & text files. They don't
> > need to be embedded into forms or anything, simply opened from the
> > application. Once I've chosen the file, hoe do I then open it to be
> > displayed? I tried using shell, but that only appears to work for .exes.
> > Hope someone can throw some light in this direction.
> >
> > Thanks very much for any fothcoming help
> > Ant
>
>
>
Author
1 Jun 2005 3:32 AM
Veign
Did you try the sample provided by the link by Randy?

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


Show quoteHide quote
"Ant" <A**@discussions.microsoft.com> wrote in message
news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com...
> Hi,
> Thanks for the response. How do I use the ShellExecute API? What is an
API?
> Is it something I reference? If you can give me a brief example it would
be
> most helpful. I found it in MSDN, but simply typing ShellExecute with the
> apporpriate arguments threw up an error.
> Thanks very much for your time
> Ant
>
>
>
> "Veign" wrote:
>
> > Look up the ShellExecute API.
> >
> > --
> > Chris Hanscom - Microsoft MVP (VB)
> > Veign's Resource Center
> > http://www.veign.com/vrc_main.asp
> > --
> > Read. Decide. Sign the petition to Microsoft.
> > http://classicvb.org/petition/
> >
> >
> > "Ant" <A**@discussions.microsoft.com> wrote in message
> > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> > > Hi,
> > > I'm using the common dialog control to open PDF & text files. They
don't
> > > need to be embedded into forms or anything, simply opened from the
> > > application. Once I've chosen the file, hoe do I then open it to be
> > > displayed? I tried using shell, but that only appears to work for
..exes.
> > > Hope someone can throw some light in this direction.
> > >
> > > Thanks very much for any fothcoming help
> > > Ant
> >
> >
> >
Author
1 Jun 2005 3:53 AM
Ant
No sorry, I didn't see the link. Having a look now.
Cheers
Ant

Show quoteHide quote
"Veign" wrote:

> Did you try the sample provided by the link by Randy?
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Ant" <A**@discussions.microsoft.com> wrote in message
> news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com...
> > Hi,
> > Thanks for the response. How do I use the ShellExecute API? What is an
> API?
> > Is it something I reference? If you can give me a brief example it would
> be
> > most helpful. I found it in MSDN, but simply typing ShellExecute with the
> > apporpriate arguments threw up an error.
> > Thanks very much for your time
> > Ant
> >
> >
> >
> > "Veign" wrote:
> >
> > > Look up the ShellExecute API.
> > >
> > > --
> > > Chris Hanscom - Microsoft MVP (VB)
> > > Veign's Resource Center
> > > http://www.veign.com/vrc_main.asp
> > > --
> > > Read. Decide. Sign the petition to Microsoft.
> > > http://classicvb.org/petition/
> > >
> > >
> > > "Ant" <A**@discussions.microsoft.com> wrote in message
> > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> > > > Hi,
> > > > I'm using the common dialog control to open PDF & text files. They
> don't
> > > > need to be embedded into forms or anything, simply opened from the
> > > > application. Once I've chosen the file, hoe do I then open it to be
> > > > displayed? I tried using shell, but that only appears to work for
> ..exes.
> > > > Hope someone can throw some light in this direction.
> > > >
> > > > Thanks very much for any fothcoming help
> > > > Ant
> > >
> > >
> > >
>
>
>
Author
1 Jun 2005 3:50 AM
Veign
His sample is probably the most complete sample you will find - as is most
of his stuff.

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/


Show quoteHide quote
"Ant" <A**@discussions.microsoft.com> wrote in message
news:F1BCD368-E2DE-4F04-A4E1-283057516985@microsoft.com...
> No sorry, I didn't see the link. Having a look now.
> Cheers
> Ant
>
> "Veign" wrote:
>
> > Did you try the sample provided by the link by Randy?
> >
> > --
> > Chris Hanscom - Microsoft MVP (VB)
> > Veign's Resource Center
> > http://www.veign.com/vrc_main.asp
> > --
> > Read. Decide. Sign the petition to Microsoft.
> > http://classicvb.org/petition/
> >
> >
> > "Ant" <A**@discussions.microsoft.com> wrote in message
> > news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com...
> > > Hi,
> > > Thanks for the response. How do I use the ShellExecute API? What is an
> > API?
> > > Is it something I reference? If you can give me a brief example it
would
> > be
> > > most helpful. I found it in MSDN, but simply typing ShellExecute with
the
> > > apporpriate arguments threw up an error.
> > > Thanks very much for your time
> > > Ant
> > >
> > >
> > >
> > > "Veign" wrote:
> > >
> > > > Look up the ShellExecute API.
> > > >
> > > > --
> > > > Chris Hanscom - Microsoft MVP (VB)
> > > > Veign's Resource Center
> > > > http://www.veign.com/vrc_main.asp
> > > > --
> > > > Read. Decide. Sign the petition to Microsoft.
> > > > http://classicvb.org/petition/
> > > >
> > > >
> > > > "Ant" <A**@discussions.microsoft.com> wrote in message
> > > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> > > > > Hi,
> > > > > I'm using the common dialog control to open PDF & text files. They
> > don't
> > > > > need to be embedded into forms or anything, simply opened from the
> > > > > application. Once I've chosen the file, hoe do I then open it to
be
> > > > > displayed? I tried using shell, but that only appears to work for
> > ..exes.
> > > > > Hope someone can throw some light in this direction.
> > > > >
> > > > > Thanks very much for any fothcoming help
> > > > > Ant
> > > >
> > > >
> > > >
> >
> >
> >
Author
1 Jun 2005 5:28 AM
Ant
Great. That did it. thank you!
Ant


Show quoteHide quote
"Veign" wrote:

> His sample is probably the most complete sample you will find - as is most
> of his stuff.
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
>
>
> "Ant" <A**@discussions.microsoft.com> wrote in message
> news:F1BCD368-E2DE-4F04-A4E1-283057516985@microsoft.com...
> > No sorry, I didn't see the link. Having a look now.
> > Cheers
> > Ant
> >
> > "Veign" wrote:
> >
> > > Did you try the sample provided by the link by Randy?
> > >
> > > --
> > > Chris Hanscom - Microsoft MVP (VB)
> > > Veign's Resource Center
> > > http://www.veign.com/vrc_main.asp
> > > --
> > > Read. Decide. Sign the petition to Microsoft.
> > > http://classicvb.org/petition/
> > >
> > >
> > > "Ant" <A**@discussions.microsoft.com> wrote in message
> > > news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com...
> > > > Hi,
> > > > Thanks for the response. How do I use the ShellExecute API? What is an
> > > API?
> > > > Is it something I reference? If you can give me a brief example it
> would
> > > be
> > > > most helpful. I found it in MSDN, but simply typing ShellExecute with
> the
> > > > apporpriate arguments threw up an error.
> > > > Thanks very much for your time
> > > > Ant
> > > >
> > > >
> > > >
> > > > "Veign" wrote:
> > > >
> > > > > Look up the ShellExecute API.
> > > > >
> > > > > --
> > > > > Chris Hanscom - Microsoft MVP (VB)
> > > > > Veign's Resource Center
> > > > > http://www.veign.com/vrc_main.asp
> > > > > --
> > > > > Read. Decide. Sign the petition to Microsoft.
> > > > > http://classicvb.org/petition/
> > > > >
> > > > >
> > > > > "Ant" <A**@discussions.microsoft.com> wrote in message
> > > > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> > > > > > Hi,
> > > > > > I'm using the common dialog control to open PDF & text files. They
> > > don't
> > > > > > need to be embedded into forms or anything, simply opened from the
> > > > > > application. Once I've chosen the file, hoe do I then open it to
> be
> > > > > > displayed? I tried using shell, but that only appears to work for
> > > ..exes.
> > > > > > Hope someone can throw some light in this direction.
> > > > > >
> > > > > > Thanks very much for any fothcoming help
> > > > > > Ant
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>
Author
31 May 2005 2:06 AM
Randy Birch
The ShellExecute API  -- see
http://vbnet.mvps.org/code/shell/shellexecute.htm

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------



Show quoteHide quote
"Ant" <A**@discussions.microsoft.com> wrote in message
news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
: Hi,
: I'm using the common dialog control to open PDF & text files. They don't
: need to be embedded into forms or anything, simply opened from the
: application. Once I've chosen the file, hoe do I then open it to be
: displayed? I tried using shell, but that only appears to work for .exes.
: Hope someone can throw some light in this direction.
:
: Thanks very much for any fothcoming help
: Ant
Author
1 Jun 2005 5:29 AM
Ant
Thanks Randy for that great sample. It's all working now.
Cheers
Ant

Show quoteHide quote
"Randy Birch" wrote:

> The ShellExecute API  -- see
> http://vbnet.mvps.org/code/shell/shellexecute.htm
>
> --
>
> Randy Birch
> MS MVP Visual Basic
> http://vbnet.mvps.org/
> ----------------------------------------------------------------------------
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
> ----------------------------------------------------------------------------
>
>
>
> "Ant" <A**@discussions.microsoft.com> wrote in message
> news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com...
> : Hi,
> : I'm using the common dialog control to open PDF & text files. They don't
> : need to be embedded into forms or anything, simply opened from the
> : application. Once I've chosen the file, hoe do I then open it to be
> : displayed? I tried using shell, but that only appears to work for .exes.
> : Hope someone can throw some light in this direction.
> :
> : Thanks very much for any fothcoming help
> : Ant
>
>