HTMLDocument

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cassidy

    HTMLDocument

    Hi,

    I've opened a web stream to a web page using the following code, where
    sPage is a string containing the URL:

    WebRequest request = WebRequest.Crea te(sPage);
    // Send the 'HttpWebRequest ' and wait for response.
    HttpWebResponse response = (HttpWebRespons e)request.GetRe sponse();
    System.IO.Strea m stream = response.GetRes ponseStream();
    System.Text.Enc oding ec = System.Text.Enc oding.GetEncodi ng("utf-8");
    System.IO.Strea mReader reader = new System.IO.Strea mReader(stream, ec);

    And I'm trying to assign the contents of the stream to a
    mshtml.HTMLDocu ment interface, but can't seem to figure out how to do
    this. Does anyone have any suggestions that may help?

    Thanks for taking the time to read this, and if you can help I'd really
    appreciate it.

    Regards,

    Cassidy.

Working...