如何在运行时设置打印页边距 [英] How to set margin of print page at runtime
本文介绍了如何在运行时设置打印页边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Visual Studio 2008和SQL 2005中开发Windows应用程序.在该项目中,我想在运行时从文本框设置打印页边距并设置页边距...我该怎么办..
如果有人知道,请帮助我..
I am developing windows application in visual studio 2008 and SQL 2005. In that project i want to set print page margin at runtime from textbox and set the page margin ...How can i do it ..
please help me if any one knows..
推荐答案
您将必须设置打印样式表.
收集表单上文本框的信息,然后生成动态打印样式表.
尝试此链接以了解打印样式
他们并不难做.
祝你好运.
You will have to set up a print style sheet.
Gather the info fomr the textboxes on your form and then generate a dynamic print style sheet.
Try This Link To Learn About Print Styles
They are not that hard to do.
Good Luck.
请参阅
http://msdn.microsoft.com/en-us/library/ms996472.aspx#printwinforms_topic2
Refer this
http://msdn.microsoft.com/en-us/library/ms996472.aspx#printwinforms_topic2
这篇关于如何在运行时设置打印页边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文