我如何打印表格......? [英] How Can I Print A Form...?
本文介绍了我如何打印表格......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想打印我的表格。我想把它打印成票据。它有一个datagridview1。我从另一个表单插入数据。我在这个表格上有三个标签,我写了关于公司等的信息,请帮我打印。请帮我打印这个表格作为账单..
i want to print my form. i want to print it as a bill. it has a datagridview1. i insert data in it from another form. and i have three lables on this form where i write information about company etc. please help me to print it. please help me to print this form as bill..
推荐答案
最好的方法是使用 PrintDocument [ ^ ] - 它允许您决定打印输出的内容,并确切地说它的显示位置和方式。
该链接包含一个示例。
The best way is to use a PrintDocument[^] - it allows you to decide what goes on the printout, and exactly where and how it is displayed.
The link includes an example.
http://msdn.microsoft.com/en-us/library/aa287529(v = vs.71)的.aspx [ ^ ]
HTTP://social.msdn.micro soft.com/Forums/vstudio/en-US/ea6e720a-10be-4d96-8cd6-23f211ec9846/how-to-print-a-form-in-c?forum=csharpgeneral [ ^ ]
http ://msdn.microsoft.com/en-us/library/6he9hz8c.aspx [ ^ ]
http://www.c-sharpcorner.com/UploadFile/srajlaxmi/printing-windows-form-in-C-Sharp-net/ [ ^ ]
http://social.msdn.microsoft.com/Forums/vstudio/en-US/eb80fbbe-6b89-4c3d-9ede-88a2b105c714/how -to-print-windows-form-in-c-application?forum = csharpgeneral [ ^ ]
-KR
http://msdn.microsoft.com/en-us/library/aa287529(v=vs.71).aspx[^]
http://social.msdn.microsoft.com/Forums/vstudio/en-US/ea6e720a-10be-4d96-8cd6-23f211ec9846/how-to-print-a-form-in-c?forum=csharpgeneral[^]
http://msdn.microsoft.com/en-us/library/6he9hz8c.aspx[^]
http://www.c-sharpcorner.com/UploadFile/srajlaxmi/printing-windows-form-in-C-Sharp-net/[^]
http://social.msdn.microsoft.com/Forums/vstudio/en-US/eb80fbbe-6b89-4c3d-9ede-88a2b105c714/how-to-print-windows-form-in-c-application?forum=csharpgeneral[^]
-KR
尝试在C#中打印Windows窗体 [ ^ ]。
这篇关于我如何打印表格......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文