Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. on-the-fly html file generation

on-the-fly html file generation

Scheduled Pinned Locked Moved C / C++ / MFC
htmlquestionlearning
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snir_ya
    wrote on last edited by
    #1

    Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.

    S B M 3 Replies Last reply
    0
    • S snir_ya

      Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      You can set the text directly to the brwser document right? I think most of the Dlls (e.g Team Track) generating HTML pages are doing in same way. Anyway for that purpose, you dont need to write to a file. Only need to keep that buffer generated. SaRath.
      "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

      1 Reply Last reply
      0
      • S snir_ya

        Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.

        B Offline
        B Offline
        Benoy Bose
        wrote on last edited by
        #3

        Sarath is saying right. You do not have to generate a file. there is simple way. You can get the interface IWebBrowser2 of the IE. from that get the interface IHtmlDocument2 of the IWebBrowser2. call the function write of the above interface. IHtmlDocument2::write( "text" ) But this code will work onlt in COM

        1 Reply Last reply
        0
        • S snir_ya

          Hi, In my application i need to generate an html page on-the-fly. The page is preseneted in the application's internal (iexplorer 6.0) browser. Of course, i can generate a text file with all the html tags and all that is required, but i'm sure there's a more elegent way of doing so. I couldn't find any on the web. Does anybody have a lead? Cheers in advance. Snir Yarom Singleton Technonlogies Ltd.

          M Offline
          M Offline
          Muhammad Azam
          wrote on last edited by
          #4

          Hi, An elegent way could be, have your data in xml format, write an xsl file that will transform your data from xml to html and display that html in webbrowser Your can search for IDOMDocument interface for transformation of xml through xsl into html. hope this satisfies you:cool: Thanks

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups