新手需要帮助才能“打印Dataviewgrid", [英] newbie needs help to "Print a Dataviewgrid"

查看:87
本文介绍了新手需要帮助才能“打印Dataviewgrid",的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打印出一个网格,仅打印几行即可.

I have a need to print out a grid, just afew lines as a plain print out. Nothing fancey.

推荐答案

您可以将控件呈现为位图,甚至可以使用打印处理程序中的Graphics对象来实现.但是最好的选择是格式化要打印的数据源,而不是控件.
You can render your control to a bitmap, you may even be able to do that using your Graphics object from your print handler. But your better bet is to format your data source for printing, not your control.


转到搜索文章 [ ^ ]并搜索表示打印DataGridView".
Goto Search for Articles[^] and search for "print DataGridView".


这篇关于新手需要帮助才能“打印Dataviewgrid",的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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