473,659 Members | 3,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Saving a Word Document within a WebBrowser Control

Hello,

I am currently building a windows application in VB.NET. At the moment
I have a word document saved locally which I open with the WebBrowser
control.

I cannot seem to save the changes made to the document.

I have a button on the Windows form which is used for saving the
document. At the moment the code behind the button is as follows:

doc = AxWebBrowser1.D ocument
doc.Save()

Unfortunately, this doesn't work. I only need to save the document and
close the WebBrowser control, but I keep meeting a lot of error.

Please could someone help. The IDE is Visual Studio 2005.

Thanks in Advance,
Dean

Dec 15 '06 #1
2 3221
Did you really need to post this 4 times within 16 minutes????????
"Dean Richardson" <ad*********@de anrichardson.co mwrote in message
news:11******** *************@8 0g2000cwy.googl egroups.com...
Hello,

I am currently building a windows application in VB.NET. At the moment
I have a word document saved locally which I open with the WebBrowser
control.

I cannot seem to save the changes made to the document.

I have a button on the Windows form which is used for saving the
document. At the moment the code behind the button is as follows:

doc = AxWebBrowser1.D ocument
doc.Save()

Unfortunately, this doesn't work. I only need to save the document and
close the WebBrowser control, but I keep meeting a lot of error.

Please could someone help. The IDE is Visual Studio 2005.

Thanks in Advance,
Dean

Dec 16 '06 #2
Sorry,

Had issues with my browser.

Constructive reply by the way thanks. That really helps me!

Dean.

Stephany Young wrote:
Did you really need to post this 4 times within 16 minutes????????
"Dean Richardson" <ad*********@de anrichardson.co mwrote in message
news:11******** *************@8 0g2000cwy.googl egroups.com...
Hello,

I am currently building a windows application in VB.NET. At the moment
I have a word document saved locally which I open with the WebBrowser
control.

I cannot seem to save the changes made to the document.

I have a button on the Windows form which is used for saving the
document. At the moment the code behind the button is as follows:

doc = AxWebBrowser1.D ocument
doc.Save()

Unfortunately, this doesn't work. I only need to save the document and
close the WebBrowser control, but I keep meeting a lot of error.

Please could someone help. The IDE is Visual Studio 2005.

Thanks in Advance,
Dean
Dec 18 '06 #3

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

Similar topics

1
3751
by: a94ws7 | last post by:
I am trying to automate a digital signature process with Microsoft Word, I have experimented by loading the word document into word and then from there placing that document inside a picturebox so as to make it look embedded, but I am hoping I can find some resolve with using the web browser control. I can successfully load a document into the control, but how do I gain control of the word instance? Like if I want to call a save on the...
3
3457
by: John Smith | last post by:
Hey folks, I've got a Windows C# application that generates a .doc file and then allows the user to preview it. I generate the file using the StreamWriter class and do a flush() and a close() after writing the last line (which always get runned). Because the intended users have all versions of MS Word ranging from Word 97 to 2003, I chose not to go with a dll object modeling approach and instead
1
2239
by: JerryShea | last post by:
Hi, I am opening a word document (RTF) in a webbrowser control and automating it. Most automation features seem to work but when I execute: wordApp.ActiveDocument.PrintPreview() I get an exception thrown: "Requested view is not available." Can anyone help me to get this document to preview?
3
4011
by: peshekeedweller | last post by:
In VB.net, how can I use automation to open a word document in a word window as a child window of an MDI form? Thanks in advance.
5
3826
by: lloyduh234 | last post by:
I need to display and allow the user to print a Word document from within a C# WinForm application. I'm using the ActiveX Browser control. The Word document displays correctly, but remains "locked" after the form and application is closed. If I try to delete the document, the message "File in use by Microsoft Word" is displayed. How do I correctly close and/or unload the document? Also, any example of displaying the printer icon and menu...
3
3643
by: Dennis | last post by:
I would like to host a word document in a windows form. Can anyone give me any guidance on how to do this, i.e., a control that accepts and displays a word document? -- Dennis in Houston
0
276
by: Dean Richardson | last post by:
Hello, I am currently building a windows application in VB.NET. At the moment I have a word document saved locally which I open with the WebBrowser control. I cannot seem to save the changes made to the document. I have a button on the Windows form which is used for saving the document. At the moment the code behind the button is as follows:
0
1176
by: Dean Richardson | last post by:
Hello, I am currently building a windows application in VB.NET. At the moment I have a word document saved locally which I open with the WebBrowser control. I cannot seem to save the changes made to the document.
1
1951
by: =?Utf-8?B?SWdvcg==?= | last post by:
Hi ! I have a problem with WebControl I opened Microsoft Word document not directly, but in Visual Basic 6.0 WebBrowser control. When I selected with Range.Select any text the Saved property of the document did not change, but when I highlighting even one character with Range.HighlightColorIndex, I cannot prevent the WebControl from displaying save message. Undo method also has no effect.
0
8851
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
8528
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
8627
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
7356
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
6179
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
5649
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
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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.