473,387 Members | 1,517 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,387 software developers and data experts.

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.Document
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 3196
Did you really need to post this 4 times within 16 minutes????????
"Dean Richardson" <ad*********@deanrichardson.comwrote in message
news:11*********************@80g2000cwy.googlegrou ps.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.Document
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*********@deanrichardson.comwrote in message
news:11*********************@80g2000cwy.googlegrou ps.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.Document
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
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...
3
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()...
1
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...
3
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
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"...
3
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
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...
0
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...
1
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.