0

I have a string variable which contains the source code of a HTML page. I have print this HTML page rendered view using source code string.

I should to print content in a single click and specify few settings like PRINTER NAME, PAGE SIZE, MARGIN and ORIENTATION in the code without showing a dialog

I am trying to print it using C# PrintDocument and WebBrowser control of Windows Form application.

First using WebBrowser WebBrowser is printing properly but I am not able set Printer Settings and PageSettings like PrinterName, Marging, Printing content height & width.

Second: PrintDocument PrintDocumet provide better way for printer settings and page settings but it is print html source code as string not render html view.

The Problem Is

How to print HTML View of give html strings with specifying few settings like PRINTER NAME, PAGE SIZE and MARGIN (Solution should be free)

redaxol
  • 3
  • 3

0 Answers0