473,398 Members | 2,113 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,398 software developers and data experts.

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.Application.Close & oDocument.Application = Nothing

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

Best wishes

Paul Bromley
Nov 20 '05 #1
6 2306
oDocument.Application.Exit
______________________________________
The Reaper Grim

"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:up**************@TK2MSFTNGP12.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.Application.Close & oDocument.Application = 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.MissingMemberException' occurred in
microsoft.visualbasic.dll

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

"The Grim Reaper" <gr*********@btopenworld.com> wrote in message
news:cb**********@hercules.btinternet.com...
oDocument.Application.Exit
______________________________________
The Reaper Grim

"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:up**************@TK2MSFTNGP12.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.Application.Close & oDocument.Application = 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.Application.Quit
_________________________________
The Grim Reaper

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

An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

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

"The Grim Reaper" <gr*********@btopenworld.com> wrote in message
news:cb**********@hercules.btinternet.com...
oDocument.Application.Exit
______________________________________
The Reaper Grim

"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:up**************@TK2MSFTNGP12.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.Application.Close & oDocument.Application = 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.InteropServices.COMException'
occurred in microsoft.visualbasic.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*********@btopenworld.com> wrote in message
news:cb**********@sparta.btinternet.com...
Oooppss.... sorry... my memory obviously isn't as good as it used to be!!!
It's oDocument.Application.Quit
_________________________________
The Grim Reaper

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

An unhandled exception of type 'System.MissingMemberException' occurred in
microsoft.visualbasic.dll

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

"The Grim Reaper" <gr*********@btopenworld.com> wrote in message
news:cb**********@hercules.btinternet.com...
oDocument.Application.Exit
______________________________________
The Reaper Grim

"Paul Bromley" <fl*******@dsl.pipex.com> wrote in message
news:up**************@TK2MSFTNGP12.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.Application.Close & oDocument.Application = 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.InteropServices.COMException'
¤ occurred in microsoft.visualbasic.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******@ameritech.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***********************@swspectrum.com> wrote in message
news:3r********************************@4ax.com...
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.InteropServices.COMException' ¤ occurred in microsoft.visualbasic.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******@ameritech.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
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...
12
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...
4
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...
3
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
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"...
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...
1
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.