'Is it possible to call Print() without instantiating ChromiumWebBrowser in a form?

Is it possible?

var browser = new ChromiumWebBrowser(string.Empty);
browser.LoadHtml("<html goes here>", @"http://www.google.com/", System.Text.Encoding.UTF8);
browser.Print();

It throws an exception, but work fine when loaded into a form.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source