打印.NET的DataGridView [英] Printing a .NET DataGridView

查看:124
本文介绍了打印.NET的DataGridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是相当新的.NET和C#,但我有一个,我想打印的DataGridView。什么是去了解这样做的最好方法是什么?

I am fairly new to .NET and C#, but I have a DataGridView that I would like to print. What would be the best way to go about doing so?

推荐答案

您可以在DataGridView导出到Excel,然后从Excel打印。

You could export the DataGridView to Excel and then print it from Excel.

您还可以考虑在一个DataGridView不显示数据,但它显示在一个ReportViewer控件,其中有导出为PDF或Excel的能力。从那里,它可以打印您的数据。

You could also consider to not show your data in a DataGridView, but show it in a ReportViewer control, which has the ability to export to PDF or Excel. From there it's possible to print your data.

这篇关于打印.NET的DataGridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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