473,748 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File Download form Website Automatic through vb.net proggramming

9 New Member
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 4173
Frinavale
9,735 Recognized Expert Moderator Expert
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
istiyaque
9 New Member
@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 Recognized Expert Moderator Expert
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
istiyaque
9 New Member
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 Recognized Expert Moderator Expert
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
6128
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 downloads. It uses fpassthru() and some headers() to send a file to the requesting user. The get.php file that I wrote (the file download module if you will) works like a charm for .ZIP files and .TXT files. However, when .EXE files are downloaded...
2
2011
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 to start the download process: Response.Clear() Response.ContentType = "text/plain" Response.AppendHeader("Content-Disposition", "attachment; filename=" & fileName) Response.AppendHeader("Content-Description", "This is your Cost Journal...
0
2582
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 http://www.site.com/download This download page contains some textboxes, checkboxes, radiobuttons, a DOWNLOAD BUTTON and text 3. I check some checkboxes, select some radiobuttons, enter text in some textboxes and click on the download button
18
16406
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 completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6)
5
12308
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. On Beta1, I am able to execute a particular page with no problem, that page opens up in the comes up just fine. On Win2kdev1, when I go to execute the same page, it opens a file download dialog and asks me whether I want to open or save the...
13
3321
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 visitor fills out the form and submits it, this calls a rather ordinary asp script like formmail.asp that sends the emails and displays a "thank you" web page. At the very end of my "thank you" web page I placed the following: <script...
0
980
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 post by Jean-Marie: http://www.thescripts.com/forum/thread357970.html Cor responds that unattended downloads are not possible but that is incorrect. The webclient.downloadfile(uri) method works quite well unattended provided one has a uri to...
0
1506
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. What I can't figure out is how capture the download dialog that pops up and download the file (site generates a CSV file based on form options). Is this possible? Poking around I try: response=ClientCookie.urlopen(form.click_request_data()).read() ...
1
47476
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.