473,387 Members | 1,502 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.

Question about webBrowser

Hi,everyone

I use AxWebBrowser.Navigate to open a word document, but I don't know
how to close the word document.Any advice would be really appreciated.

Best Regard

Zeeway
May 31 '06 #1
3 1457

"zeeway" <ze****@gmail.com> wrote...
Hi,everyone

I use AxWebBrowser.Navigate to open a word document, but I don't know
how to close the word document.Any advice would be really appreciated.


If you want to retain control over Word rather than let it do its own thing
(which is what you're achieving with the web browser route), you'll probably
need to open Word using its COM automation interface and manipulate the
resulting object. A Google search on "word com c#" seems to return a few
useful links on how to achieve this from a .NET application.

(As a general rule, opening and shutting Word repeatedly in a server
environment is a bad idea, but it does work nicely if you don't do it too
often :)
May 31 '06 #2
Hi,
Thank you for your post!
I have ever considered using the automation,but there is one question:
How can I open a word document in a windows which I specified?

Best regards

zeeway

"Emma Burrows" <emma*@*nospam*eburrows.*co.uk> дÈëÏûÏ¢
news:eA**************@TK2MSFTNGP04.phx.gbl...

"zeeway" <ze****@gmail.com> wrote...
Hi,everyone

I use AxWebBrowser.Navigate to open a word document, but I don't know how to close the word document.Any advice would be really appreciated.
If you want to retain control over Word rather than let it do its own

thing (which is what you're achieving with the web browser route), you'll probably need to open Word using its COM automation interface and manipulate the
resulting object. A Google search on "word com c#" seems to return a few
useful links on how to achieve this from a .NET application.

(As a general rule, opening and shutting Word repeatedly in a server
environment is a bad idea, but it does work nicely if you don't do it too
often :)

May 31 '06 #3

"Zeeway" <ze****@gmail.com> wrote...
How can I open a word document in a windows which I specified?


I think at this point, I'll need more details on what you're actually trying
to achieve. It may be that you're looking to do something like the code in
this article at http://www.codeproject.com/cs/miscct...ordcontrol.asp
(Google is your friend, use it! :), so have a look and see if that helps.

Jun 1 '06 #4

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

Similar topics

3
by: Noozer | last post by:
One last question and I will have my application working the way that I need... How can you put a value into a specific field on a specific form? If you look at the webpage sample below you...
2
by: dxben | last post by:
I am considering a situation where I have (n) number of form windows, each with an instance of the Microsoft Web Browser Control (IE) on each form. In each web browser control is an HTML page that...
4
by: Toma Marinov | last post by:
Hello ! I made some test with webbrowser control in VS.2005. When I load a word document in webbrowser through .Navigate method (from my hdd), I want to get the stream of the loaded doc file with...
5
by: SPE - Stani's Python Editor | last post by:
Hi, During optimizing SPE for Ubuntu, I found something strange. I have Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not working: >>> import webbrowser >>>...
0
by: Andy Chen | last post by:
Hi, I found a vbs file on the internet, it can do this job very well: ------------------ 'MakeMHT.vbs Const adSaveCreateNotExist = 1 Const adSaveCreateOverWrite = 2 Const adTypeBinary = 1...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
11
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
0
by: Bob Bryan | last post by:
After adding a WebBrowser control to my form (VS 2005), and the following 2 lines of code to a click event: webBrowser1.Navigate(new Uri(NextURL)); String PageData = webBrowser1.DocumentText; ...
0
by: kimiraikkonen | last post by:
Hi, I'm using Visual C# .NET 2005, i have 2 forms when a button in form1 is clicked, second form must be shown, and second form (form2) has webbrowser control associated to run on load time. the...
3
by: TedTrippin | last post by:
Hi, Background - I've create a windows application in VS and added a WebBrowser component and all works well. I'm now trying to do this programmatically. My application now listens on a socket...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.