Results 1 to 8 of 8

Thread: Displaying HTML in VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Location
    Florida, USA
    Posts
    93

    Displaying HTML in VB

    If I received a HTML format string??...how can I display the formated results in VB???

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Save it to a temporary file and point the WebBrowser control at it.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Location
    Florida, USA
    Posts
    93

    How do I do that

    I never use the web browser control, how do you point the web browser to a temp file.

  4. #4
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Is there some way of doing this without saving it to a temporary file?

  5. #5
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694
    this has been answered hundreds of times before
    anyway
    with webbrowser1.document
    .open
    .write MY_HTML_STRING
    .close
    end with

  6. #6
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Originally posted by alexandros
    this has been answered hundreds of times before
    anyway
    with webbrowser1.document
    .open
    .write MY_HTML_STRING
    .close
    end with
    To use that code you first have to navigate to a blank page:
    WebBrowser1.Navigate "about:blank"

    Alexandros, why do you use the open and close methods?? Never seen em before... what do they do? Without them you get the same results...
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  7. #7
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    I searched the forum and reviewed numerous pages and did not find the answer.

    Thanks TheVader, I will give this a try tomorrow.

  8. #8

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