Google Answers Logo
View Question
 
Q: OLE Automation Control of MS Word in a Browser Frame ( No Answer,   2 Comments )
Question  
Subject: OLE Automation Control of MS Word in a Browser Frame
Category: Computers > Programming
Asked by: stuff4jamie-ga
List Price: $25.00
Posted: 12 Jul 2002 21:52 PDT
Expires: 20 Jul 2002 15:38 PDT
Question ID: 39156
The goal: a frameset with two frames displayed in IE; one frame
displaying a MS Word document, the other frame controlling the
instance of Word running in the other frame.  The control can be
through an ActiveX component (that I would write or modify), or more
ideally, through VBscript embedded in the HTML document.

I can create the frameset with the instance of Word on one side - but
I can't obtain a proper reference to the Word.Application for control.
 Similarly I can spawn-off and control a new (non-embedded) instance
of Word from my control page without any problem via CreateObject or
GetObject [I just can't get it to be embedded in the browser].

Request for Question Clarification by spot_tippybuttons-ga on 19 Jul 2002 18:55 PDT
May I ask for a few more specifics about what you are trying to
achieve? For example, do you want to:

- Create a custom Word document based on user selections from a web
page?
- Use Word components to add special features to a web page, such as
spell checking a form?
- Send arbitrary OLE commands to Word's application scripting layer?
(Not recommended)

In addition, how much control over the contents of the original Word
document do you have?

Thank you.

Clarification of Question by stuff4jamie-ga on 20 Jul 2002 15:38 PDT
I am, infact, trying to "Send arbitrary OLE commands to Word's
application scripting layer."

I discovered that GetObject() has been explicitly disabled for
embedded ActiveX objects in IE (when used by embedded script).  See:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q239470

<blockquote>
Web developers should be aware of a similar security issue when trying
to access the object model of an ActiveX Document hosted in a frame
from script in another frame. Access to an embedded ActiveX Document
object is restricted because the document object server may support
features that can be used to circumvent Internet Explorer security.

Developers who need to programmatically manipulate embedded ActiveX
Documents may do so by building an ActiveX control that hosts the
ActiveX Document and providing methods or properties to get to the
object model. Because the control must be downloaded and installed by
the end user as a trusted component, this solution does not violate IE
security.
</blockquote>

I have writen a small ActiveX control which acts as a proxy sending
the automation requests requested from the page script onto the
embedded Server to solve the problem.  Thanks.
Answer  
There is no answer at this time.

Comments  
Subject: Re: OLE Automation Control of MS Word in a Browser Frame
From: spot_tippybuttons-ga on 17 Jul 2002 03:24 PDT
 
Are you sure IE does not consider this a security violation?
Subject: Re: OLE Automation Control of MS Word in a Browser Frame
From: stuff4jamie-ga on 17 Jul 2002 19:57 PDT
 
I am sure that that the script and/or the ActiveX control will need to
be signed for general access.  But as this will be running on an
intranet, I can relax the security restrictions within this Trusted
Domain.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy