473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Rendering HTML

Hi all

I need to create an ASP.NET control that will allow me to do an HttpRequest,
parse the HTML and then render it in a thumbnail (sorta like a preview of a
site without browsing to it).

Managed code would be ideal, but after struggling to find help on doing this
in C#, I'm starting to doubt whether this can be done without the WebBrowser
Control or mshtml.dll.

Any help, tips or pointers would be greatly appreciated.

Thanks!
Cobus
Nov 18 '05 #1
2 1191
I think it's too hard to render HTML yourself.

Here are the steps i think will work,
1. Use WebBrowser control to navigate to site
2. Send WM_PRINT to the control so it will render itself on your HDC
3. Save it as a bitmap.

George.
"Cobus Lombard" <co*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi all

I need to create an ASP.NET control that will allow me to do an HttpRequest, parse the HTML and then render it in a thumbnail (sorta like a preview of a site without browsing to it).

Managed code would be ideal, but after struggling to find help on doing this in C#, I'm starting to doubt whether this can be done without the WebBrowser Control or mshtml.dll.

Any help, tips or pointers would be greatly appreciated.

Thanks!
Cobus

Nov 18 '05 #2
There are a few third-party controls that provide this functionality, but I
think most of them basically just use MSHTML on the backend.

Writing a HTML Layout engine, in any language, is a nontrivial feat.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
"Cobus Lombard" <co*****@hotmail.com> wrote in message
news:#5**************@TK2MSFTNGP12.phx.gbl...
Hi all

I need to create an ASP.NET control that will allow me to do an HttpRequest, parse the HTML and then render it in a thumbnail (sorta like a preview of a site without browsing to it).

Managed code would be ideal, but after struggling to find help on doing this in C#, I'm starting to doubt whether this can be done without the WebBrowser Control or mshtml.dll.

Any help, tips or pointers would be greatly appreciated.

Thanks!
Cobus

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nacho Nachev | last post by:
Hello, AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output HTML that is compliant with the client browser or at least stick to HTML 4 specification or IE. This seems...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
3
by: ramesh | last post by:
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into...
0
by: Juan R. | last post by:
Since the idea of encoding mathematics using MathML is being very far from popular due to a number of factors -expensive tools, bad accesibility of generated code, unusual verbosity, lack of...
1
by: Ricardo Quintanilla G. | last post by:
how to override the rendering method of a whole asp.net applicaction? i want to not include spaces between html elements. As example, then rendering produce that: == == == == <html> <body>...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.