Downloading file from remote location
-
Hi all, I want to download an xls file from remote location (Please note that its not FTP , its live ip, like myip/shared/info.xls) .I have been searching for any class or library but no success till yet. Can someone help me ? Thanks in advance. Also, please guide how to open an excel file for reading data from it. Thanks Kaliem
-
Hi all, I want to download an xls file from remote location (Please note that its not FTP , its live ip, like myip/shared/info.xls) .I have been searching for any class or library but no success till yet. Can someone help me ? Thanks in advance. Also, please guide how to open an excel file for reading data from it. Thanks Kaliem
If you can access the file over HTTP, you can use something like this: http://www.codeproject.com/cs/library/filedownloader.asp[^]
----------------------------- In just two days, tomorrow will be yesterday.
-
Hi all, I want to download an xls file from remote location (Please note that its not FTP , its live ip, like myip/shared/info.xls) .I have been searching for any class or library but no success till yet. Can someone help me ? Thanks in advance. Also, please guide how to open an excel file for reading data from it. Thanks Kaliem
-
Hi all, I want to download an xls file from remote location (Please note that its not FTP , its live ip, like myip/shared/info.xls) .I have been searching for any class or library but no success till yet. Can someone help me ? Thanks in advance. Also, please guide how to open an excel file for reading data from it. Thanks Kaliem
What do you mean "remote location"? Across your network or the internet?
only two letters away from being an asset
-
What do you mean "remote location"? Across your network or the internet?
only two letters away from being an asset
-
Both! I want to be able to access files over my network and internet. like the file URL would be something like ipaddress/foldername/filename.xls
Process.Start("IExplore.exe", "\\ipaddress\foldername\filename.xls "); Process.Start("IExplore.exe", "http:\\ipaddress\foldername\filename.xls "); Provided the files is accessable from http of course.
only two letters away from being an asset
-
Process.Start("IExplore.exe", "\\ipaddress\foldername\filename.xls "); Process.Start("IExplore.exe", "http:\\ipaddress\foldername\filename.xls "); Provided the files is accessable from http of course.
only two letters away from being an asset
-
thanks for that, yes the file is accessible from http. Yet to implement that code but my guess is, it would prompt the user to download that file. Is that possible if we can just save the file in a specific place instead of prompting. Kaliem
Kaliem, See my first response to your question. The component described in the article does what you are asking. It takes a URL to a file over HTTP and downloads it to a given location.
----------------------------- In just two days, tomorrow will be yesterday.
-
thanks for that, yes the file is accessible from http. Yet to implement that code but my guess is, it would prompt the user to download that file. Is that possible if we can just save the file in a specific place instead of prompting. Kaliem
Because the process being started is IE it will attempt to open the file just as any valid URI, however because of the file association IE will use MS Excel as the viewer. There is no need to download the file.
only two letters away from being an asset