Guest gimpl Posted November 4, 2002 Posted November 4, 2002 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? Quote
*Gurus* divil Posted November 4, 2002 *Gurus* Posted November 4, 2002 No. System.Diagnostics.Process.Start() Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest gimpl Posted November 5, 2002 Posted November 5, 2002 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 Quote
Guest gimpl Posted November 6, 2002 Posted November 6, 2002 bump. You don`t need to post any code, just answer the question please Quote
*Gurus* divil Posted November 6, 2002 *Gurus* Posted November 6, 2002 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.