Results 1 to 9 of 9

Thread: Someone please please help me

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    Someone please please help me

    Attached is a simple sample project it goes to a web page and saves it as a image, Ive not got this bit working, however i need to save the entire page, NOT just the top part of it.....


    Please take a look and come back to me....


    Thanks

    Carl
    Attached Files Attached Files
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    What you are asking for a not realisitc. You would have to write your own parser engine for html and manually translate each html element into an image. Meaning you are writing an entire web browser. This would take you months if not a couple years to write.

    There is no other way
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    surly mshtml is storing the document in memory, cant that memory be invoked and then used to create an image ?
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    No. It is not what you think. A Web browser goes line by line of an html document and translates that into what you see. It isnt creating an image of any type. Its just formatted text. There is no 'image' of the web page you can pull out of memory. Best you can do without parsing the html yourself is get a screenshot of what is in the Device context, and that will only capture what is visible.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    oh bummer, i was hoping there would be a image or something in memory, DAM DAM DAM.
    ok what about doing something like this...

    Capture part one of the DC, then automaticaly move the page take another shot (join it to image 1) then if there more page repeat this until its finished. adding each snapshot to the first one, therefor creating the bigger picture....

    theres a prog called snagit and that allows webpage capturing simply buy doing a left mouse click at top of the page and then scroll down press right click to show the end point,.....

    How have they done that....

    If this is too much how about some control or pdf creator to make a single image from the webpage
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    "Capture part one of the DC, then automaticaly move the page take another shot (join it to image 1) then if there more page repeat this until its finished. adding each snapshot to the first one, therefor creating the bigger picture...."

    That may be possible albeit clunky. Im not sure how to go about that though.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    well you got any idea's to how i can capture a web page as a single file ?
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  8. #8

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    oh i came across this today,

    Isnt it the case that he is trying to save the hidden parts of the page ???

    http://www.experts-exchange.com/Prog..._20939542.html
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  9. #9

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    ok in microsoft IE ive got options when saving a webpage

    one of them is save complete webpage as mht.
    If i can do this in code, then problem is sloved.......
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

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