How can I open a document from VBNET

N

ngrTerry

I have stored and retrieved the document from a database and back to a
file.
This file can be PDF, DOC, EML

I want to be able to shell(Documentname) so that windows tries to find
the appropriate program to open the document just as if the document
had been double clicked from a directory

Can anyone please advise if this is at all possible

Many Thanks

Terry
 
J

Jeff Gaines

I have stored and retrieved the document from a database and back to a
file.
This file can be PDF, DOC, EML

I want to be able to shell(Documentname) so that windows tries to find
the appropriate program to open the document just as if the document
had been double clicked from a directory

Can anyone please advise if this is at all possible

Many Thanks

Terry

Have a look in the help for Process.Start - you need to pass a fully
qualified file name, do you save the document after retrieving it from the
DB, whoops you said that!

I'd be interested in your technique for saving documents to a DB if you
have time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top