views:

56

answers:

3

I'm looking for ideas on how to take screenshots of websites within a .NET application. This application will be a windows service. Thanks!

A: 

You can't show forms with WindowsServices. However, try to create a Form, with WebBrowser component, fill-in URL, browser.OnPageLoaded => myBrowser.DrawToBitmap.. who knows.

serhio
A: 

You can host the MSHTML component and have it load the page and then print it to a metafile, which can then be player or converted to a bitmap.

Note, however, that the MSHTML component may not work correctly when run as service without visual UI (e.g. without desktop interaction).

Lucero