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. How to supply a generated image to a HTML page in a CHtmlView

How to supply a generated image to a HTML page in a CHtmlView

Scheduled Pinned Locked Moved C / C++ / MFC
xmlhtmlwpfcomhelp
3 Posts 2 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.
  • L Offline
    L Offline
    luedi
    wrote on last edited by
    #1

    Hi, I must add some report generation to our application. The reports should be customizable via templates. I thought about having some XML/XSL to generate HTML output and to display this output via a CHtmlView. The only problem I have (right now) is that I can't find a way to show the application generated images within the HTML page. Feeding the generated HTML source to the IE is possible via a technique used in the CHTMLWriter class (http://www.beginthread.com/Article/Ehsan/Adding HTML Content to the WebBrowser Control Dynamically/) Showing static images is possible via the res:// protocol, but what about generated images. Is there a simple solution to add callbacks to the IE, so that I can provide the image during the rendering stage? Writing the images to the disc is a solution, but not an elegant one. Any ideas? Thanks Dirk

    S 1 Reply Last reply
    0
    • L luedi

      Hi, I must add some report generation to our application. The reports should be customizable via templates. I thought about having some XML/XSL to generate HTML output and to display this output via a CHtmlView. The only problem I have (right now) is that I can't find a way to show the application generated images within the HTML page. Feeding the generated HTML source to the IE is possible via a technique used in the CHTMLWriter class (http://www.beginthread.com/Article/Ehsan/Adding HTML Content to the WebBrowser Control Dynamically/) Showing static images is possible via the res:// protocol, but what about generated images. Is there a simple solution to add callbacks to the IE, so that I can provide the image during the rendering stage? Writing the images to the disc is a solution, but not an elegant one. Any ideas? Thanks Dirk

      S Offline
      S Offline
      Scott H Settlemier
      wrote on last edited by
      #2

      I think that might be supported as an mhtml document. I'm not sure how far the support for such has yet gotten.

      L 1 Reply Last reply
      0
      • S Scott H Settlemier

        I think that might be supported as an mhtml document. I'm not sure how far the support for such has yet gotten.

        L Offline
        L Offline
        luedi
        wrote on last edited by
        #3

        MHTML, never heard of this... searching the web, this could be the solution, but it seems, that Outlook Express is required. Thanks for the idea. Dirk ... Web Archive When you save a Web page as "Web archive," the Web page saves this information in Multipurpose Internet Mail Extension HTML (MHTML) format with a .mht file extension. All relative links in the Web page are remapped and the embedded content is included in the .mht file, rather than being saved in a separate folder. The absolute references or hyperlinks on the Web page remain unchanged and the .mht file is viewed using Internet Explorer. MHTML enables you to send and receive Web pages and other HTML documents using e-mail programs such as Microsoft Exchange, Microsoft Outlook, and Microsoft Outlook Express. MHTML enables you to embed images directly into the body of your e-mail messages rather than attaching them to the message. NOTE: "Web archive" is available only if Outlook Express is installed. The ability to save a Web page as a Web archive file is provided by the Inetcomm.dll file (the Microsoft Internet Messaging API file), which is installed by Microsoft Outlook Express 5. ...

        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