如何在vb中创建打印预览和打印datagridview? [英] How do you create a print preview and a print a datagridview in vb?

查看:107
本文介绍了如何在vb中创建打印预览和打印datagridview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vb中有一个datagridview但我看不到有办法打印datagridview并得到它的printpreview。

i have a datagridview in vb but i cant see to have a way around printing the datagridview and getting a printpreview of it.

推荐答案

请尝试一下研究第一: datagridview print preview vb.net - Google搜索 [ ^ ]。
Please try a bit of research first: datagridview print preview vb.net - Google Search[^].


我使用asp.net做到了。我在那里使用的简单技巧是在页面上标记所有需要值的控件,然后使用简单的select查询从数据库中获取数据,并使用查询返回的值绑定这些控件和网格视图。



尝试这种方法,可能会有效。
i did it using the asp.net. The simple trick i used there is to have a page labelled with all the controls i need the values for and then using a simple select query to fetch data from database and binding these controls and the grid view with values returned by query.

Try this approach, may work.


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

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