C# print html document from html string -
string s="<html><body>..some html code..</body></html>"; how print document without printdialog?
output: ...some html code...
as understood correctly, need webbrowser 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(); } 
Comments
Post a Comment