Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HTML
<html>
<head>
</head>
<p style="color:red">Hi Welocme</p>
</html>
Posted
Updated 31-Oct-15 9:30am
v2
Comments
Zoltán Zörgő 31-Oct-15 14:48pm    
Nonsense. You can render html content to any graphical device. Please clarify your concrete needs!
PIEBALDconsult 31-Oct-15 15:32pm    
You mean also without the .net WebBrowser class?
https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser(v=vs.110).aspx

1 solution

If you want to simply display text (console like) from the html file, you can read it as an xml file and extract the data you want. You have to build the program that will do it, a xmlreader class may help.
If you want also to render formatting, you need to built your own html rendering engine or find a class that will do it.

Without further details, it is not possible to give you something better than general advices.
 
Share this answer
 
Comments
Dave Kreskowiak 31-Oct-15 15:55pm    
Wrong. HTML is not really readable by the XML parsers. Simple HTML can be read, but not more advanced stuff.

It's better to use the HtmlAgility pack for this.
Patrice T 31-Oct-15 16:35pm    
He did not even told us the language he is using.
The code he gave us is not even a well formed html file.
Rajasekhar Naidu 2-Nov-15 11:42am    
<html>
<head>
</head>
<p style="color:red">Hi Welocme</p>
</html>
Rajasekhar Naidu 31-Oct-15 22:55pm    
please send me example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900