Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TWebBrowser preview

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Hi guys,

I am trying to do a small preview window to dynamically display a given website. I have a TWebBrowser sized at H=150, w=200 and want to display a mini screenshot of a webpage.

The problem is that websites don't scale down to fit the component, so I end up with a normal sized webpage with scrollbars in a 150x200 box.

Any ideas on how to do this?

I have a couple of hack methods up my sleeve that *may* work:
1) have an invisible TWebBrowser, load the website, draw the TWebBrowser into a Bitmap and resize the bitmap to 150x200
2) Override the web page CSS and set the body to 150px (I doubt this will work though)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top