草庐IT

PageMediaSizeName

全部标签

wpf - 无法在 Windows 8(WPF、.NET 4.0)下横向打印文档

我有一些简单的WPF(.NET4.0)应用程序,它们在Windows7和Windows8.1上的工作方式不同。如果我打印文档并在打印对话框或代码中选择横向,如下所示,Windows8.1会截断它(在打印机上),因为它是纵向的。(之前在Windows7下没见过这种效果)。privatevoidPrint_Click(objectsender,RoutedEventArgse){PrintDialogprintDialog=newPrintDialog();printDialog.PrintQueue=System.Printing.LocalPrintServer.GetDefaultP