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. Web Development
  3. ASP.NET
  4. Display html file in web page as a thumbnail?

Display html file in web page as a thumbnail?

Scheduled Pinned Locked Moved ASP.NET
xmlquestioncsharphtmlsysadmin
3 Posts 3 Posters 4 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.
  • B Offline
    B Offline
    Brian W King
    wrote on last edited by
    #1

    environment: vb .net (v2+, no v3 support yet here on production machines) I need to be able to display an html physcial file as a thumbnail on a web page. I can't put my finger on an easy solution. If I have to convert it to an image (bmp, jpg, etc), I don't want to do it as it adds too much overhead to the process. I would rather just throw a new browser up and display the whole doc instead. I need to write code that produces as little overhead as possible. I just can't see the path to the end of this without a conversion in the middle. Is there one? Why: We produce (some) documents via an XML translation to html (via XSLT). The output is written and stored in a physical file location (for later use). The user is allowed to FAX the document where we pull the file from the drive, attach the doc as a file to email and send it along to our fax server as an attachment. That all works great already. But I wanted to display what is going to be faxed on the web page as a thumbnail before sending the doc.

    M A 2 Replies Last reply
    0
    • B Brian W King

      environment: vb .net (v2+, no v3 support yet here on production machines) I need to be able to display an html physcial file as a thumbnail on a web page. I can't put my finger on an easy solution. If I have to convert it to an image (bmp, jpg, etc), I don't want to do it as it adds too much overhead to the process. I would rather just throw a new browser up and display the whole doc instead. I need to write code that produces as little overhead as possible. I just can't see the path to the end of this without a conversion in the middle. Is there one? Why: We produce (some) documents via an XML translation to html (via XSLT). The output is written and stored in a physical file location (for later use). The user is allowed to FAX the document where we pull the file from the drive, attach the doc as a file to email and send it along to our fax server as an attachment. That all works great already. But I wanted to display what is going to be faxed on the web page as a thumbnail before sending the doc.

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      There's no way without some overhead that I know of. I would be tempted to use the WinForms WebBrowser control behind-the-scenes for something like this, utilizing its DrawToBitmap method.

      MishaInTheCloud.blogspot.com

      1 Reply Last reply
      0
      • B Brian W King

        environment: vb .net (v2+, no v3 support yet here on production machines) I need to be able to display an html physcial file as a thumbnail on a web page. I can't put my finger on an easy solution. If I have to convert it to an image (bmp, jpg, etc), I don't want to do it as it adds too much overhead to the process. I would rather just throw a new browser up and display the whole doc instead. I need to write code that produces as little overhead as possible. I just can't see the path to the end of this without a conversion in the middle. Is there one? Why: We produce (some) documents via an XML translation to html (via XSLT). The output is written and stored in a physical file location (for later use). The user is allowed to FAX the document where we pull the file from the drive, attach the doc as a file to email and send it along to our fax server as an attachment. That all works great already. But I wanted to display what is going to be faxed on the web page as a thumbnail before sending the doc.

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        well, there is no easy means to make a thumbnail of an entire page with the exact layout. If you can create a mini version of the same web page, u can load that in an IFrame. Generally what most of the websites do, is just show a small thumbnail picture of the site and place in the site. I dont think there is any possible way other than this. If so, I would love to see them. :(

        Abhishek Sur My Latest Articles Working with Excel using MDAC
        Basics on LINQ and Lambda Expressions
        Create .NET Templates

        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