2
我想打印一个非常简单的布局,其中包含PrintDocument
,它可以放在一页上,因此它不需要DocumentPaginator
。但是,我想使用PrinterDialog
来选择打印机。我看到PrinterSettings
作为PrinterDialog
的财产的示例,它被简单地分配给PrintDocument
。但这似乎不再可能。我还寻找其他解决方案,如自定义paginator类使用,但空来了。我可能不会有这样的深刻洞察WPF,但为什么必须将它始终dongled这样...WPF:有没有办法只使用PrintDialog来选择目标打印机而不必提供DocumentPaginator类?
感谢您对我的PrintQueue的指示。与printDocument.PrinterSettings.PrinterName = printDialog.PrintQueue.FullName,我只希望名称在任何情况下都是兼容的... – thomiel