The web page you load in browser can be printed using one of the following ways:

  • Using the window.print() JavaScript function. This function can be invoked from JavaScript code on the loaded web page (e.g. when user clicks some button, JavaScript code invokes this function to print the web page). 
  • Using the Browser.Print() method of DotNetBrowser API. For example, you can invoke this method when user presses Print button in your .NET application. For example:


printButton.Click += delegate(object sender, RoutedEventArgs e)
{
    browser.Print();
};


Both methods prints currently loaded web page using default print settings. If you need to print web page with custom print settings, you must register your own implementation of PrintHandler interface where you can override default print settings or cancel printing.