如何在单页中打印datagridview的所有列 [英] How to print all the columns of datagridview in single page

查看:116
本文介绍了如何在单页中打印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


这篇关于如何在单页中打印datagridview的所有列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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