Results 1 to 3 of 3

Thread: How to set an HTMLDocument to an IE

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    3

    How to set an HTMLDocument to an IE

    Hello !

    I want to do something like:

    SET objIE.Document=objHTML

    objIE is an InternetExplorer
    objHTML is an HTMLDocument

    obviously, the above is not possible, since the document property is read-only.

    I don't want to use innerhtml as follows:
    objIE.document.body.innerHTML=objHTML.body.innerHTML

    since it does not copy frames and iframes.
    Besides, it doesn't seem the right way.

    Anyone has an idea?

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    Do a search on Document.Write

    basically... navigate to about:Blank()
    then do a IEobject.document.write

    been a while....I know its something along those lines
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    3

    Function not implemented in VB

    Thanks for the tip.

    But, I've tried it, and it doesn't compile, giving the following error message:
    "Function or interface marked as restricted, or function uses an automation type not supported in Visual Basic"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width