英文:
Why wpf window respects my screen height when printing? It gets trimmed after I print the window to my printer
问题
我的屏幕高度是768,窗口高度是1200,当我要将窗口打印到我的打印机时,它被截断,因为我的屏幕高度只有768。我使用打印对话框来进行打印,问题是窗口高度应该是1200,但它遵循我的屏幕高度。
英文:
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.
答案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)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论