CopyPastor

Detecting plagiarism made easy.

Score: 1.7748661041259766; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2017-02-26
by Muhammad Saqlain

Original Post

Original - Posted on 2015-08-25
by Artem Kulikov



            
Present in both answers; Present only in the new answer; Present only in the old answer;

[Print with a WebBrowser Control][1]
Another way is using [WebBrowser Class][2]
WebBrowser webBrowser = new WebBrowser(); void Print(string str) { webBrowser.DocumentText = str; webBrowser.DocumentCompleted += webBrowser_DocumentCompleted; } void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { webBrowser.Print(); }

[1]: https://msdn.microsoft.com/en-us/library/b0wes9a3.aspx [2]: https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser(v=vs.110).aspx
As I understood you correctly, you need [WebBrowser][0] class:
WebBrowser webBrowser = new WebBrowser(); void Print(string str) { webBrowser.DocumentText = str; webBrowser.DocumentCompleted += webBrowser_DocumentCompleted; } void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { webBrowser.Print(); }
[0]:https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser(v=vs.110).aspx

        
Present in both answers; Present only in the new answer; Present only in the old answer;