从表单打印数据的最佳方法是什么 [英] what is the best way to print data from the form

查看:131
本文介绍了从表单打印数据的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我只是一个问题,任何人都认为您认为从文本框或richtextbox或listview或表单中的任何内容打印数据的最佳方法是什么.

我在互联网上寻找可以轻松打印记录或记录的东西

所以基本上,我有datagridview,当我选择行时,我在文本框中填充了与所选行相对应的数据,我需要从文本框中打印这些数据,这是最简单的方法.

我对如何轻松实现此功能感到困惑,所以我只需要意见,别无他物,没有代码问题,尽管稍后获得一些答案时我可能会遇到一些问题:)))))))))))


谢谢

Hello I have just a question, of opinion of anyone just what you think is the best way to print data from textbox or richtextbox or listview or anything from the form.

I was looking over the internet something for easy printing of record or records

so basically, I have datagridview, when I select row I have textboxes populated with data accordingly to selected row, I need to print those data from textboxes sort of speak, what is the easiest way to do this.

I am confused of how to do this easy, so I just need opinion, nothing else, no code issue although I might have something later when I get some answers :))))))


thank you

推荐答案

通过使用 System.Drawing.Printing.PrintDocument
By using System.Drawing.Printing.PrintDocument, http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^]; the code sample can be found at the end of this article.

—SA


这篇关于从表单打印数据的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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