|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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. 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/microsoft.public.vb/browse_frm/thread/c9dcd7daca02e93f/6f366585997c940f ) You might want to use that as a reference. Best Regards, HKSHK 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.
Converted a solution to VS2005 and it is complaining: Variable 'PF2' is used before it has been assi
Detect Concurrent Running Instances setting datagrid column widths in code? Problem with installer made in VS 2003.NET Force ASP.NET shadow directory to update? Can we run Vb.Net Application on Apple Macintosh ? Run from Server or Workstation write Override methods in Code Editor VS2005 How do I maintain paragraph numbers into a new word document |
|||||||||||||||||||||||