473,738 Members | 9,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileDownload with WebBrowser Control - disable the Save?

want to open a word document stored in my database.

What I do is save the document locally, and then open a new winform
that has the WebBrowser Control on it and navigate to that new file.

This allows the user to manipulate the file and save it. When they
close the WebBrowser, if the contents has changed I save it back to the
db, and delete the local file.

My problem is the "File Download" window that comes up. If the user
clicks Save or Cancel things don't work. I'd like to surpass this
screen altogether, but from what I've read, you can't avoid it.

Is there a way to disable the Save and Cancel buttons? Or at least the
Save button?

Thanks for any suggestions.

Jan 27 '06 #1
2 6365
Why don't you just use the shell function and let Windows determine the
proper program?
(e.g. Shell "cmd /c start YourFile.doc")

If the user has Word (or OpenOffice or WordViewer) installed, it will
open the document. This way you don't have to deal with any
"Save/Cancel" dialog.

I once posted a routine for that (in classic VB,
http://groups.google.com/group/micro...366585997c940f
)
You might want to use that as a reference.

Best Regards,

HKSHK

Jan 29 '06 #2
If you use the shell, would you have any way on knowing if the document
is still open or if it has been closed?.

I open the web browser as a showdialog, so the user can't do anything
else in my program, until they are done w/ the document changes and has
closed the document.

Thanks.

Feb 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3811
by: ASP .NET Newbie | last post by:
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use the WebClient to get the page data, but I need to be able to use the WebBrowser (AxWebBrowser)? Thanks, Chad
0
1812
by: Jim | last post by:
Reading http://msdn.microsoft.com/workshop/browser/webbrowser/reference/events/filedownload.asp, it seems that the FIleDownload event occurs before showing a File download dialog box. In this event, you can cancel the download. But, where can you find the URI to the file that was trying to be downloaded?
2
2671
by: standish22 | last post by:
I want to open a word document stored in my database. What I do is save the document locally, and then open a new winform that has the WebBrowser Control on it and navigate to that new file. This allows the user to manipulate the file and save it. When they close the WebBrowser, if the contents has changed I save it back to the db, and delete the local file. My problem is the "File Download" window that comes up. If the user
8
3419
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : *************************************************
15
5681
by: Laurent Lequenne | last post by:
Hello All, I'm currently developing a free windows Scrabble (in french :)) application that uses extensively the WebBrowser class of NET 2.0 for configuration, and data browsing. It works 100% on my machine, with the WebBrowser Class, and the Microsoft.MsHtml component. I can access all elements on the pages through the events, I can change some parts. Everything is rendered with XSLTs and changing directly the document through the ...
1
6600
by: Marc Gravell | last post by:
I'm trying to hook some simple monitoring functions into an existing WebBrowser instance on a form... I was hoping to track individual file downloads, so I looked at the FileDownload event. Unfortunately, this tells you that something happened, but is only EventHandler/EventArgs, so doesn't tell you /what/ (which is a bit useless). I was hoping to track the individual urls for the images, scripts etc... Am I missing a trick here?
0
1106
by: prefect | last post by:
I am trying to make a file download functionality similiar to the downloads at www.microsoft.com/downloads/ I have a FileDownload.aspx page. when user clicks download button , i open a popup and the file identifier is sent to FileDownload.aspx . I use Response.WriteFile( ) to send the file to client. But how do i close the Popup after the "Save File" window appears ? Putting a delay to wait for the response to reach the client seems...
0
1909
by: Sin Jeong-hun | last post by:
I've found that if a MessageBox (called by alert/confirm from Javascript) or a web page modeless dialog is popped up, I cannot call Navigate of the WebBrowser control. If I do, a COM exception occures. How can I disable javascript MessageBoxes or modeless dialogs? I disabled normal popup windows by adding e.Cancel=true at the browsers newwindow event. But I couldn't disable modeless dialog or javascript MessageBox. I tried to remove some...
0
1808
by: cheenusri | last post by:
Hello friends, i am running slide show(pps file) in vb.net form using webbrowser control in it.while running the form, if right click on the slide, it show some popup menu, here i wan to disable all mouse click events on slide show which is inside the webbrowser control, i tried all the ways, but cant disable it.If anyone know the result ,please give me the solutions....
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6751
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...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
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.