From: someone@mail.gr   
      
   Thanks a lot. I 'll try that.   
      
   "Reverend Fuzzy" wrote in message   
   news:s4GdnfKnrqZvKVjanZ2dnUVZ_vamnZ2d@comcast.com...   
   > You can use a standard "shellexec" function, such as this one...   
   >   
   > Private Declare Function GetDesktopWindow Lib "user32" () As Long   
   > Public 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   
   > Public Const SW_SHOWNORMAL = 3   
   > Public Function RunFile(ByVal strDocName As String) As Long   
   > Dim RunAssociateFile As Long   
   > Dim Scr_hDC As Long   
   > Dim lngRes As Long   
   > Scr_hDC = GetDesktopWindow()   
   > RunAssociateFile = ShellExecute(Scr_hDC, "Open", strDocName, "", "C:\",   
   > SW_SHOWNORMAL)   
   > End Function   
   >   
   > Use: Call RunFile(filename As String)   
   > That will open the file you specify, with the program thats associated to   
   > it.   
   >   
   >   
   > "Pyrforos" wrote in message   
   > news:fq4bt1$14iv$1@ulysses.noc.ntua.gr...   
   >> How can I load a document (word,pdf) with the program that loads it   
   >> normally?   
   >>   
   >> Thanks in advance   
   >>   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|