How To Display HTML Without Saving To File First
The following code will work with the following requirements:
- You are using .NET Framework 2.0
- You already have WebBrowser control added into your Windows Form
public void DisplayHTML(String strHTML)
{
if (strHTML != "")
{
if (this.webBrowser2.Document != null)
{
HtmlDocument doc = this.webBrowser2.Document.OpenNew(true);
doc.Write(strHTML);
}
else
{
this.webBrowser2.DocumentText = strHTML;
}
}
}
Powered by Gregarious (42)
Hardono Arifanto :: Mar.07.2008 :: Programming, .NET :: 1 Comment »
350-018 reflects progress in how company customers generate highly secure business-ready networks. 70-297 involves designing a Windows Server 2003 active directory and network infrastructure. The 640-816 interconnecting Cisco networking devices is the test linked with the Cisco certified network associate certification. CheckPoint Security Administration NGX, also identified as 156-215 test, is a significant certification of CheckPoint.
Next : Visual Basic 2005 Jumpstart
Previous: My Stream.Read() Misadventure
1 Comment to “How To Display HTML Without Saving To File First”
-
andie wicaksono
Posted: Apr 16th, 2008 at 11:21 pm1halo2, off topic, nitip notifikasi, link blog ku berubah, sekarang di
http://www.andiewicaksono.com
tengkiyuuuu






