Jump to content
Xtreme .Net Talk

some help please


Recommended Posts

Posted

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?

Posted

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

Posted
bump. You don`t need to post any code, just answer the question please

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...