473,839 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Word automation in Webbrowser

I am trying to automate Microsoft Word in the Webbrowser and have used the
sample at http://support.microsoft.com/default...b;EN-US;243058 can
some kind soul tell me the syntax to close the Instance of Word hat is
opened?

I have tried
oDocument.Appli cation.Close & oDocument.Appli cation = Nothing

Where might I find some documentation on automation in the Webbrowser?

Best wishes

Paul Bromley
Nov 20 '05 #1
6 2326
oDocument.Appli cation.Exit
_______________ _______________ ________
The Reaper Grim

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:up******** ******@TK2MSFTN GP12.phx.gbl...
I am trying to automate Microsoft Word in the Webbrowser and have used the
sample at http://support.microsoft.com/default...b;EN-US;243058 can some kind soul tell me the syntax to close the Instance of Word hat is
opened?

I have tried
oDocument.Appli cation.Close & oDocument.Appli cation = Nothing

Where might I find some documentation on automation in the Webbrowser?

Best wishes

Paul Bromley

Nov 20 '05 #2
Unfortunately:-

An unhandled exception of type 'System.Missing MemberException ' occurred in
microsoft.visua lbasic.dll

Additional information: Public member 'Exit' on type 'Application' not
found.

"The Grim Reaper" <gr*********@bt openworld.com> wrote in message
news:cb******** **@hercules.bti nternet.com...
oDocument.Appli cation.Exit
_______________ _______________ ________
The Reaper Grim

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:up******** ******@TK2MSFTN GP12.phx.gbl...
I am trying to automate Microsoft Word in the Webbrowser and have used the sample at http://support.microsoft.com/default...b;EN-US;243058

can
some kind soul tell me the syntax to close the Instance of Word hat is
opened?

I have tried
oDocument.Appli cation.Close & oDocument.Appli cation = Nothing

Where might I find some documentation on automation in the Webbrowser?

Best wishes

Paul Bromley


Nov 20 '05 #3
Oooppss.... sorry... my memory obviously isn't as good as it used to be!!!
It's oDocument.Appli cation.Quit
_______________ _______________ ___
The Grim Reaper

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:el******** ******@tk2msftn gp13.phx.gbl...
Unfortunately:-

An unhandled exception of type 'System.Missing MemberException ' occurred in
microsoft.visua lbasic.dll

Additional information: Public member 'Exit' on type 'Application' not
found.

"The Grim Reaper" <gr*********@bt openworld.com> wrote in message
news:cb******** **@hercules.bti nternet.com...
oDocument.Appli cation.Exit
_______________ _______________ ________
The Reaper Grim

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:up******** ******@TK2MSFTN GP12.phx.gbl...
I am trying to automate Microsoft Word in the Webbrowser and have used the sample at
http://support.microsoft.com/default...b;EN-US;243058 can
some kind soul tell me the syntax to close the Instance of Word hat is
opened?

I have tried
oDocument.Appli cation.Close & oDocument.Appli cation = Nothing

Where might I find some documentation on automation in the Webbrowser?

Best wishes

Paul Bromley



Nov 20 '05 #4
Hi,
Unfortunately I had tried this and got the following.

An unhandled exception of type 'System.Runtime .InteropService s.COMException'
occurred in microsoft.visua lbasic.dll

Additional information: This method or property is not available because
this document is in another application.

I woner if this is because it is being hosted in the Webbrowser control?

Maybe I should be looking at the processes and then killing Winword.exe as
an option. Not sure how to do this and will look into it.

Thanks for your help. I would be grateful of any other options as I do not
want folk having instances of Word lying around open.

Best wishes

Paul Bromley

"The Grim Reaper" <gr*********@bt openworld.com> wrote in message
news:cb******** **@sparta.btint ernet.com...
Oooppss.... sorry... my memory obviously isn't as good as it used to be!!!
It's oDocument.Appli cation.Quit
_______________ _______________ ___
The Grim Reaper

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:el******** ******@tk2msftn gp13.phx.gbl...
Unfortunately:-

An unhandled exception of type 'System.Missing MemberException ' occurred in
microsoft.visua lbasic.dll

Additional information: Public member 'Exit' on type 'Application' not
found.

"The Grim Reaper" <gr*********@bt openworld.com> wrote in message
news:cb******** **@hercules.bti nternet.com...
oDocument.Appli cation.Exit
_______________ _______________ ________
The Reaper Grim

"Paul Bromley" <fl*******@dsl. pipex.com> wrote in message
news:up******** ******@TK2MSFTN GP12.phx.gbl...
> I am trying to automate Microsoft Word in the Webbrowser and have used
the
> sample at

http://support.microsoft.com/default...b;EN-US;243058 can
> some kind soul tell me the syntax to close the Instance of Word hat

is > opened?
>
> I have tried
> oDocument.Appli cation.Close & oDocument.Appli cation = Nothing
>
> Where might I find some documentation on automation in the Webbrowser? >
> Best wishes
>
> Paul Bromley
>
>



Nov 20 '05 #5
On Sat, 26 Jun 2004 18:32:36 +0100, "Paul Bromley" <fl*******@dsl. pipex.com> wrote:

¤ Hi,
¤
¤
¤ Unfortunately I had tried this and got the following.
¤
¤ An unhandled exception of type 'System.Runtime .InteropService s.COMException'
¤ occurred in microsoft.visua lbasic.dll
¤
¤ Additional information: This method or property is not available because
¤ this document is in another application.
¤
¤ I woner if this is because it is being hosted in the Webbrowser control?
¤
¤ Maybe I should be looking at the processes and then killing Winword.exe as
¤ an option. Not sure how to do this and will look into it.
¤
¤ Thanks for your help. I would be grateful of any other options as I do not
¤ want folk having instances of Word lying around open.
¤

Have you tried closing the document instead of attempting to terminate Word?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #6
Hi Paul,

I found that the DsoFramer OCX to be a far better solution to my problem.

Many thanks

Best wishes

Paul

"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:3r******** *************** *********@4ax.c om...
On Sat, 26 Jun 2004 18:32:36 +0100, "Paul Bromley" <fl*******@dsl. pipex.com> wrote:
¤ Hi,
¤
¤
¤ Unfortunately I had tried this and got the following.
¤
¤ An unhandled exception of type 'System.Runtime .InteropService s.COMException' ¤ occurred in microsoft.visua lbasic.dll
¤
¤ Additional information: This method or property is not available because
¤ this document is in another application.
¤
¤ I woner if this is because it is being hosted in the Webbrowser control?
¤
¤ Maybe I should be looking at the processes and then killing Winword.exe as ¤ an option. Not sure how to do this and will look into it.
¤
¤ Thanks for your help. I would be grateful of any other options as I do not ¤ want folk having instances of Word lying around open.
¤

Have you tried closing the document instead of attempting to terminate Word?

Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)

Nov 20 '05 #7

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

Similar topics

3
2785
by: Emily John | last post by:
I have a word document that I need to send it as an attachment to an XML file. Basically, converting into byte array or using some encoding mechanism. This has to be done through XML serialization in c#. Is it possible to do it through xml serialization ? THanks, --Emily *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
12
5541
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000 and office XP components installed. ie I have word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to word 2k automation yet I get the error "Automation Error" "ClassFactory cannot supply requested class" when on late binding try...
4
7689
by: Daniel | last post by:
Hello, i have a problem with the word automation from c#. First, i want to mention, that i don't have any dependencies from word in my c#-project, i want to use the system.reflection model to handle the automation. So, i'm using the following code to create a new word document: ---Code---
3
1364
by: scorpion53061 | last post by:
Is it possible and if so how can I open Microsoft Word to have it exist within my application?
1
2245
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
4025
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
3832
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...
1
1960
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.
1
1447
by: arun raut | last post by:
On Apr 10, 10:32 pm, Rich <R...@discussions.microsoft.comwrote: help not compilation write all easier. But Rich, Without being sure completely, if you want to use HTML as help
0
10908
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
10649
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
10295
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
9426
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
7829
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
7018
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
5682
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...
1
4487
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
3
3136
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.