根据Pagelayout设置绘制窗体 [英] Drawing windows form as per Pagelayout setting

查看:100
本文介绍了根据Pagelayout设置绘制窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有应用程序,我们在Windows窗体上绘制rectagles和line运行时间。

我的要求是,我需要根据打印机页面布局设置在Windows窗体上绘制这些控件。



当我将缩放因子应用于Windows窗体时,它工作正常。是否具有按照打印机页面设置在Windows窗体上绘制控件的解决方案。



问候,

Somnath Avhad。

Hi,

I have application where we draw rectagles and lines run time on windows form.
My requirement is that, I need to draw these controls on windows form as per printer page layout settings.

When I apply zoom factor to windows forms it is working fine. Is any boday have solution for drawing controls on windows form as per printer page settings.

Regards,
Somnath Avhad.

推荐答案

我建​​议首先尝试编写一个获取和设置页面布局设置的程序。此时,完全忘记绘制矩形等,只是专注于了解所选打印机可以获得的设置以及如何获取它们。



一旦你能够获得打印机设置 - 并了解它们是什么,你很可能会弄清楚如何在你的应用程序中应用它们。
I recommend first experimenting with writing a program that gets and sets the page layout settings. At this point, completely forget about drawing rectangles, etc., and just concentrate on understanding what settings you can get for the selected printer and how to get them.

Once you are able to get the printer settings - and understand what they are, most likely you'll figure out how to apply them in your application.


这篇关于根据Pagelayout设置绘制窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆