如何增加窗户的高度,然后再增加780

编程入门 行业动态 更新时间:2024-10-24 14:19:00
本文介绍了如何增加窗户的高度,然后再增加780的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨..亲爱的所有 我有一个增加窗口窗体高度的问题,实际上我想打印窗口窗体,但是我的窗口窗体的实际高度在900左右,并且图像成功打印,但是底部被切掉,然后如何管理该底部. 大家帮帮我吧. 在此先感谢..

hi.. Dear all I have a problem to increase windows form height, actually I want to print windows form but my windows form real height around 900 and image is printed successfully but bottom portion is cut out then how can manage this bottom portion. please guys help me.. Thanks in advance..

推荐答案

您始终可以通过编程使窗口高度超出屏幕大小,但这不是正确的方法. 正确的方法是:不要打印窗口,不要打印文档.这样,您可以将文档从其窗口中解耦.工作流程应为:文档相对于演示文稿而言相对独立:在一种情况下它进入窗口,在另一种情况下它进入打印机.当然,功能是不同的:在窗口上,通常可以对其进行编辑. 使用类 System.Drawing.Printing.PrintDocument:,这就是该概念的完美体现. msdn.microsoft/en-us/library/system. drawing.printing.printdocument.aspx [ ^ ]. 请注意代码示例. 祝你好运,
—SA
You can always make the windows height beyond the screen size programmatically, but this is not a right approach. The right approach would be this: don''t print a window, print a document. This way, you decouple the document from its window. The workflow should be this: a document is relatively independent from the presentation: it goes to the window in one situation, to the printer in another one. Of course, the features are different: on a window, it usually can be edited. Here is how it perfectly lies into this conception is you use the class System.Drawing.Printing.PrintDocument: msdn.microsoft/en-us/library/system.drawing.printing.printdocument.aspx[^]. Pay attention for the code sample. Good luck,
—SA

如果需要打印显示的表格,其高度大于屏幕分辨率,那么我认为可以增加屏幕分辨率以适合表格. 第二种选择是使用屏幕捕获工具(如)分别捕获表单的顶部和底部 cropper.codeplex/ [ ^ ] 并将这两个部分结合到绘画或其他图像处理软件中. If it is required to print the displayed form whose height is more than the screen resolution, then I think the screen resolution can be increased to fit the form. Second option is to capture the top and bottom parts of the Form separately using a screen capture tool like cropper.codeplex/[^] and to join the two parts in paint or other image processing software.

更多推荐

如何增加窗户的高度,然后再增加780

本文发布于:2023-11-23 03:23:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619902.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:然后再   窗户   高度

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!