Kiosk Printing

Made a cool mod to CEF that you'd like to share with others? Discuss CEF modifications here, and view modifications that others have made.

Kiosk Printing

Postby Leon669 » Fri Sep 16, 2016 8:56 am

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;
        }
    }
}
Leon669
Newbie
 
Posts: 1
Joined: Fri Sep 16, 2016 8:51 am

Return to Modifications Forum

Who is online

Users browsing this forum: No registered users and 2 guests