Getting a Handle on an active ActiveXObject

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jfking
    New Member
    • Aug 2007
    • 2

    Getting a Handle on an active ActiveXObject

    Hi Everyone,

    I have a need to load a document in a browser (in an iFrame) and then get control of that instance of the ActiveXObject. I need to do things like formatting and whatnot.

    I have come up with two options, but both pose questions I can't seem to find any documentation on.

    1) I can easily load the document in a normal fashion by setting the src to a WEBDAV url. MS Word loads fine imbedded in the browser (in the IFRAME) but I don't know how to get a handle to the ActiveXObject so I can get access to the document and application objects etc.

    2) I can easily load the document by creating a new ActiveXObject, which allows me to automate formating and other features, but unfortunately the MS Word instance opens in its own window, which is not acceptable.

    If anyone has a soultion to either problem, I would love to hear it.

    Thanks in advance.

    John
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    One possibility, though not tested, is to try opening the ActiveXObject Word instance within an iframe.

    Comment

    Working...