How can I open a document from VBNET

  • Thread starter Thread starter ngrTerry
  • Start date Start date
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
 
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.
 
Back
Top