Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Linux 上的 Windows 上工作时,打印过程不使用 printDialog 中显示的页面大小。它始终使用在操作系统打印机设置中设置的尺寸。有没有人也观察到这种行为。我考虑写一个关于它的错误报告。
我只处理过 C# PrintDialog,所以我可能是错的,但是PrintDialog它从打印机的驱动程序中检索了它的所有信息。查询打印机设置时很可能正在使用安装在 Linux 机器上的驱动程序,这意味着从 Linux 机器和 Windows 机器查询时驱动程序返回不同的值。
PrintDialog