Page 1 of 1

Kiosk Printing

PostPosted: Fri Sep 16, 2016 8:56 am
by Leon669
Hey there.

I have a Windows Form Application with a CEF Browser in it. When i push a HTML printing button a new window opens and the Windows printing dialog pops up.
How can i disable this?


Code: Select all
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            InitBrowser();
        }

        public ChromiumWebBrowser browser;
        public void InitBrowser()
        {
            Cef.Initialize(new CefSettings());
            browser = new ChromiumWebBrowser("www.google.com");
            this.Controls.Add(browser);
            browser.Dock = DockStyle.Fill;
        }
    }
}