Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer

huangapple go评论69阅读模式
英文:

Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer

问题

我的屏幕高度是768,窗口高度是1200,当我要将窗口打印到我的打印机时,它被截断,因为我的屏幕高度只有768。我使用打印对话框来进行打印,问题是窗口高度应该是1200,但它遵循我的屏幕高度。

这是我想要打印的窗口,但被截断了。
Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer
Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer

英文:

My screen height is 768 and the window height is 1200 then when I was going to print the window to my printer, it gets truncated because my screen height is only 768. I used print dialog to achieve the printing and the problem is that the window height is supposedly 1200 but it respects my screen.

This is the window that I wanted to print but is truncated.
Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer
Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer

答案1

得分: 2

当打印时,如果不将视图放入文档样式中,它只会打印屏幕上可见的区域。我以前遇到过这个问题,当你处理工作部分时,你必须先将其转换为文档,然后再传递给工作。完成后,你可以打印文档,而不是视图边界(屏幕)。

英文:

When printing it will only print the viewable area of the screen if you don't put the view into a document style. I ran into this problem before and when you are doing the job portion you have to convert it to a document first then push it through the job. Once that is done you can print the document instead of the view bounds (screen)

huangapple
  • 本文由 发表于 2023年5月7日 17:38:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76193126.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定