VB the transfer opens each kind of document

Author:Anonymous    Updated:2008-10-16 12:12:58

Any document may, so long as has been connected related procedure Private Declare Function ShellExecute Lib \ “shell32.dll \” Alias \ “ShellExecuteA \” (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long \ 'the transfer opens c:a.ppt Private Sub Command1_Click() Dim pat pat = \ “c:a.ppt \” \ 'the supposition is you puts the document way ShellExecute Me.hwnd, \ “open \”, pat, pat, vbNull, 3 End Sub

Previous:How in the VB procedure to produce another Exe document?
Next:With Visual Basic on the system I / O port operations
User Reviews
Site Search
Recommended article
AD