Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Snapshot of Internet Explorer
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00951151
Message ID:
00951665
Views:
8
Hi Alex,

Here is an idea of how to accomplish what you want to do. First add a web browser to a form in the Windows Forms application. Then convert the form into an image. You can go further and allow the user to print/print preview the image. To see how this is done, check out two entries in my weblog at:

http://blogs.prenia.com/cathi

The first link is "How to add a web browser to your form". This will demonstrate how to provide browser capabilities inside of a form.

The second link is "How to print a form in Windows Forms". This will show the code to convert the form into an image and additionally (if you want to add the feature for the users) allow the image to be printed or sent to print preview.

Hopefully this will provide the functionality you are looking for.

>Hello UT,
>
>Using .NET or any other advanced API...
>
>My goal is to programmatically start Internet Explorer, navigate to a URL, grab a snapshot of the rendered page and save the snapshot as an image file...
>
>Basically, I would like to render an HTML page (HTML / javascript) as an image...
>
>Is there any .NET class of third party I can use to do this? It has to be done in the background, on a server.
>
>Any hint, documentation, links, etc?
>
>Thanks in advance,
> Alex
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform