我应该如何设置打印的边距、纸张方向等。不要使用 ShowDialog((
即使您不使用ShowDialog()
也可以使用它,只需设置属性;
PrintDialog printDialog = new PrintDialog();
printDialog.PrintTicket.PageScalingFactor = 95;
printDialog.PrintTicket.PageOrientation = PageOrientation.Portrait;
printDialog.PrintVisual(customerDG, "Printing the customers list.");