Display html file in web page as a thumbnail?
-
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.
-
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.
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.
-
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.
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