Vb.net – 为什么打印预览正常但打印页面被裁剪?

编程


您好,我已经用 e.Graphics 方法在 A5 页面上准备了一份文档。
当我看到打印预览窗口时,页面布局正常。
当我将其发送到物理打印机时,它会被裁剪左上角,但右下角被裁剪。
当我将打印机更改为虚拟打印机时,PDF 文件可以正确打印。
可能是什么问题?

提前致谢

我尝试过的:

我在谷歌上搜索过,没有结果。

解决方案1

没有您的代码,我们无法确定 – 但我猜这与边距有关。 由于处理纸张的方式,某些打印机无法在页面的左边缘或右边缘或靠近顶部或底部的位置进行物理打印。 预览和实际打印的这些边框可能不同。

检查您的打印文档边界,并确保您的代码不会在边界之外打印。

解决方案2

The issue may stem from the physical printer's settings or drivers. Ensure the printer driver is up-to-date and supports the A5 paper size. Additionally, check the printer's margin settings to prevent cropping issues, as observed with the Virtual printer producing a correctly printed PDF file.

コメント

タイトルとURLをコピーしました