The following example shows how to get the TreeGrid's HTML, add it to a new browser window and trigger printing.