some help please

  • Thread starter Thread starter gimpl
  • Start date Start date
G

gimpl

Guest
ok. i need to open a *.xls file with excel.
I declared a function

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

and when when I call the function i get an error
hwdn not declared

Call ShellExecute(hwnd, "open", "c:\test.xls", "", "c:\program files\Microsoft office\office10\excel.exe", 1)

And is the code for file open right?
 
Ok I did the thing above and it works. thx

another q:
How do I get File size info from ftp server and get progressbar to adapt to the file size.

Ps(any sample code would be nice)

thx in advance
 
Learn the FTP protocol and use the Socket class to connect, set up the data connection and retreive a directory listing. I don't think there is an easier way to do it.
 
Back
Top