如何在单页中打印datagridview的所有列

问题描述:

嗨frds,

在我的datagridview中包含15列,我想在单页中打印这15列。我怎样才能做到这一点。任何人都帮助我。

谢谢

Hi frds,
In my datagridview contain 15 columns, i want take print this 15 columns in single page. How can i do this. Any one help me.
Thank You

使用 PrintDocument class [ ^ ] - 链接包含一个基本示例 - 您可以准确指定打印所有内容的位置和大小。这可能看起来很多工作,但它是在.NET中打印任何内容的最佳方式
Use the PrintDocument class[^] - the link includes a basic example - and you can specify exactly where and how big you print everything. It may seem like a lot of work, but it's the best way to print anything in .NET