2017-08-11 188 views
0

我在我的C#winforms应用程序中实现铬控制,我需要打印没有对话框的页面,即使用默认打印机。无对话框的铬打印(默认打印机)Winforms C#

#region members 


    ChromiumWebBrowser chrome; 

    #endregion 

    public PrepaidVirtualOfficeForm() 
    { 
     InitializeComponent(); 


     chrome = new ChromiumWebBrowser("http://ourcodeworld.com"); 
     chrome.LoadingStateChanged += OnLoadingStateChanged; 
     this.pnlContainerBrowser.Controls.Add(chrome); 
     chrome.Dock = DockStyle.Fill; 
    } 

private void mtPrint_Click(object sender, EventArgs e) 
    { 
     chrome.Print(); 
    } 

回答

相关问题