|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
opening a document with system's default appHy, I need to open files by clicking a open button in a form.
Files would be in any format and I want to open them with system's asociated aplication. Thanks for your atention. Rubén Cuenca wrote:
> Hy, I need to open files by clicking a open button in a form. Use the UseShellExecute property of a Process object, it'll launch a file > Files would be in any format and I want to open them with system's > asociated aplication. with whatever application is registered as the default viewer. For example, to open a PDF file: \\\ Dim proc As New Process 'Set the process details With proc.StartInfo 'Set the information for the file to launch .FileName = "C:\YourPDFFile.pdf" .UseShellExecute = True End With 'Open the file proc.Start() /// -- (O)enone Ruben,
Open a document means nothing, a document can be everything. It is a file, but it can be a part of a WebPage, a doc file from Word, a part of a table in a database etc. etc. Can you explain a little bit more what you want? Cor Show quoteHide quote "Rubén Cuenca" <el_p***@hotmail.com> schreef in bericht news:efwQadJgGHA.4932@TK2MSFTNGP03.phx.gbl... > Hy, I need to open files by clicking a open button in a form. > Files would be in any format and I want to open them with system's > asociated > aplication. > Thanks for your atention. > > "Rubén Cuenca" <el_p***@hotmail.com> schrieb: \\\> Hy, I need to open files by clicking a open button in a form. > Files would be in any format and I want to open them with system's > asociated > aplication. Imports System.Diagnostics .... Process.Start("C:\foo.doc") /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
converting the use of interfaces under vb6 to vb.net
WebBrowser Control Frame Documents How to translate C++ 'for' loop into VB.NET? error handle Windows Service using VB.Net automatic startup problem ! catch the process terminate from the task manager make a form shared - called from another form - how? ClickOnce deployment problem! Text color list box Stupid Question of the day...... |
|||||||||||||||||||||||