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 get saved as the bitmap the whole html document with the scrollbars

how to get saved as the bitmap the whole html document with the scrollbars

Scheduled Pinned Locked Moved C / C++ / MFC
htmlgraphicstutorialquestion
4 Posts 3 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.
  • A Offline
    A Offline
    Anamika2005
    wrote on last edited by
    #1

    How to get saved as the bitmap(DIB) the whole html document with the scrollbars that is with the part which is not visible on the screen but visible when the the document is scrolled. As i m able to save the page which is displayed on the screen as the bitmap(DIB)in webbrowser application but i want to save the whole page and i m getting the whole page height and width through the get_scrollheight() and get_scrollwidth() but the page is not saved as while creating the DIB the window pointer is passed so what to do so that whole page get saved??? Regards Shikha Pune

    M V 2 Replies Last reply
    0
    • A Anamika2005

      How to get saved as the bitmap(DIB) the whole html document with the scrollbars that is with the part which is not visible on the screen but visible when the the document is scrolled. As i m able to save the page which is displayed on the screen as the bitmap(DIB)in webbrowser application but i want to save the whole page and i m getting the whole page height and width through the get_scrollheight() and get_scrollwidth() but the page is not saved as while creating the DIB the window pointer is passed so what to do so that whole page get saved??? Regards Shikha Pune

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      Well not sure if this will work but since no one answered try this Get the HWND to the main IE window and get its DC then try saving that DC to a bitmap the whole window along with the scroll bars should be saved.


      **You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
      **

      A 1 Reply Last reply
      0
      • M Monty2

        Well not sure if this will work but since no one answered try this Get the HWND to the main IE window and get its DC then try saving that DC to a bitmap the whole window along with the scroll bars should be saved.


        **You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
        **

        A Offline
        A Offline
        Anamika2005
        wrote on last edited by
        #3

        Thanks for reply i have yet not tried what u said i will try that and let u know Thanks Regards Shikha

        1 Reply Last reply
        0
        • A Anamika2005

          How to get saved as the bitmap(DIB) the whole html document with the scrollbars that is with the part which is not visible on the screen but visible when the the document is scrolled. As i m able to save the page which is displayed on the screen as the bitmap(DIB)in webbrowser application but i want to save the whole page and i m getting the whole page height and width through the get_scrollheight() and get_scrollwidth() but the page is not saved as while creating the DIB the window pointer is passed so what to do so that whole page get saved??? Regards Shikha Pune

          V Offline
          V Offline
          Viorel
          wrote on last edited by
          #4

          Do you use IHTMLElementRender::DrawToDC to obtain the bitmap? Does it clip the exceeded areas?

          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