且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C#Windows应用程序中从WebBrowser控件打印时设置纸张尺寸

更新时间:2023-12-06 13:47:16

You can use the Print dialog to allow the user to set any printing or page properties:

PrintDialog pd = new PrintDialog();
if (pd.ShowDialog() == DialogResult.OK){
printDocument1.PrinterSettings = pd.PrinterSettings;
//Something
}