打印所有行和所有列datagridview的最佳方式吗? [英] Best way to print a datagridview with all rows and all columns?
问题描述
我需要增加一些功能,能够打印任何显示在DataGridView中。我试图用位图类,但它似乎并没有被打印所有的行和列。它看起来像一个屏幕截图,并缺少一些列和行。 任何人都知道什么更好的方法来处理呢?非常感谢。
I need to add some functionality to be able to print whatever is displayed in datagridview. I tried to use bitmap class but it does not seem to be printing all the rows and columns. It looks like a screenshot and missing some columns and rows. Anybody knows any better way to handle this? Thanks so much.
推荐答案
有一些例子/于$ C $的CProject实用程序:
There are some examples/utilities on CodeProject:
-
<一个href="http://www.$c$cproject.com/KB/printing/PrintingOfDataGridView.aspx">http://www.$c$cproject.com/KB/printing/PrintingOfDataGridView.aspx
<一个href="http://www.$c$cproject.com/KB/printing/GridPrint$p$pviewSolution.aspx">http://www.$c$cproject.com/KB/printing/GridPrint$p$pviewSolution.aspx
<一href="http://www.$c$cproject.com/KB/printing/GridPrint$p$pviewSolution2.aspx">http://www.$c$cproject.com/KB/printing/GridPrint$p$pviewSolution2.aspx
<一个href="http://www.$c$cproject.com/KB/printing/DGVPrinter.aspx">http://www.$c$cproject.com/KB/printing/DGVPrinter.aspx
这篇关于打印所有行和所有列datagridview的最佳方式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!