473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

File Download form Website Automatic through vb.net proggramming

I am making a desktop application, in application, i want to download a file from website server through vb.net code using.

on website there is a link name 'Original Data in Excel' when we click on this link its open a popup to 'Open', 'Save', or 'Cancel'
if we click to Save button its open a browser and asking the path where we want 'save as' the file in our machine. and defaultly server providing the filename also, we can change that filename at the time 'Save as' file. and that file will save as Excel format.

I want to save that directly in local machine without open that popup and asking where do u want to save file. Saving path hardcode in program.
Mar 30 '10 #1
5 4160
Frinavale
9,735 Expert Mod 8TB
This is not possible.

When ta web-browser requests data, the content-type is sent along with data. If this data is not HTML then the browser attempts to find a plug-in that should handle the type of data sent. For example: if the server sends a PDF file the browser uses the Adobe plugin (if it's installed) to display the PDF. If there is no plugin installed the browser lets the user decide what to do.

In your case you've sent an Excel file.
As far as I know there is no no plugin that lets browsers display Excel files...but that's besides the point.

The point here is that the browser lets the user decide what to do with data the browser doesn't know how to handle.

-Frinny
Mar 31 '10 #2
@Frinavale
Thanks Frinny for ur reply,

I appreciate and agre with ur reply, but is there not anyway to download a file.
we know that downloadable file on server is excel format only.

thanks
istiyaque
Apr 2 '10 #3
Frinavale
9,735 Expert Mod 8TB
I'm sorry Istiyaque but I don't understand your question.
Could you please ask it again using different words?

-Frinny
Apr 2 '10 #4
ok, Frinny

lets I will try to explain you actually i am trying to say you, if suppose we know that downloadable file from server that content-type is in excel format. and i think bydefault every machine is have installed that excel file plugin. On webpage there is alink name 'Original Data in Excel' and I want to click that link throgh our vb.net programming and clicking that link without opening that popup, we want to save that file in our local machine path which we are code in or programme.
I think now you will be understand something what is my problem. if not then. please let me know. whats your query or which line or things did you not undrerstood.

Thanks for your reply and support
Istiyaque.
Apr 5 '10 #5
Frinavale
9,735 Expert Mod 8TB
Not every machine has an excel ("plugin"??) by default.
Mine doesn't.

I'm not even sure what you mean by "plugin".
Wiki for: a plugin.

Excel may be installed on the computer, but the web browser is not aware of what is installed on the computer (and never should be aware of what's installed either for security issues).


You could consider writing your own "Excel Viewer" or seeing if there's something already out there that you can use to display the Excel file in the browser window...but I don't think this is really what you want.

-Frinny
Apr 6 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
2
by: Tom Youngquist | last post by:
I am trying to download a text file that my .NET page has just created based on entered parameters on the web page. Everything seems to work and the file is created. I am using the following code...
0
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
13
by: bmurphy | last post by:
Last week after much searching, I found the answer to my problem in this newsgroup. I can't find the thread from which I got my solution, but I wanted to report back what worked. When the site...
0
by: swheat | last post by:
Hello I would like to be able to automate downloading a file from a website which requires that I submit form parameters to start the download. The problem I am having is described exactly in this...
0
by: skiani | last post by:
Hi, I'm trying to automate downloading a file from a website. The site has a cookie based authentication so I use ClientCookie to first login then I fillout the form with ClientForm successfully....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.