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

550 Views Asked by At

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.

0

There are 0 best solutions below