Hi all,
In a nutshell: I am using the CefSharp.WinForms.ChromiumWebBrowser component in a C# application, and I can't get it to print borderless.
My program generates HTML in the browser to render and print an A4 sheet of address labels. The labels extend right up to the edge of the sheet, therefore the printing needs to be borderless, and indeed the print properties specify that. However the Cef browser insists on printing a border (which I have NOT specified in the HTML) so the labels are not positioned correctly. If I do exactly the same but using the good old Windows browser component (System.Windows.Forms.WebBrowser) the sheet is correctly printed, without border. I would happily use the old Windows browser for this lowly purpose were it not for the fact it won't print background color, which the Cef browser does just fine with a suitable CSS tag (which is of course not recognized by the Windows browser). So I'm sort of stuck between a rock and a hard place. I tried the documentation, such as there is, for the Cef browser but I don't see a way to get rid of that border.
Any ideas would be most welcome !
Thanks,
Chris