Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# webbrowser write html to text file

private void DisplayText(object sender, WebBrowserDocumentCompletedEventArgs e)
{
WebBrowser wb = (WebBrowser)sender;
wb.Document.ExecCommand("SelectAll", false, null);
wb.Document.ExecCommand("Copy", false, null);
textResultsBox.Text = CleanText(Clipboard.GetText());
}
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #webbrowser #write #html #text #file
ADD COMMENT
Topic
Name
1+2 =