All the samples described in the Guide for Printing in Applications are now available on GitHub. These illustrate how to print html from a .NET c# WPF desktop application that uses a WebBrowser control to display HTML.