如何从Access数据库中打印选定的列? [英] how to print selected columns from access database?

查看:178
本文介绍了如何从Access数据库中打印选定的列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的表单中单击打印按钮时从Access数据库中打印选定的列...
例如,我有两列名称和年龄..单击按钮,它会打印两列.

i want to print selected columns from access database on click of the print button which is in my form ...
for example i have two columns name and age ..on click of the button it print two columns.

推荐答案

与.NET中的任何其他打印作业相同-尝试使用MSDN上的教程,或查看在DotNet Framework上打印DataGridView [< ^ ]

我还没有尝试过,但看起来确实可行.

这是一种复杂的方法,可以快速给出答案...
It is the same as any other print job in .NET - try MSDN for a tutorial on how to, or have a look at Printing a DataGridView on DotNet Framework[^]

I haven''t tried it, but it looks like it works.

This is way to complex to give as a quick answer...


有一种复杂的方法和一种简单但肮脏的方法.
复杂的方法要求您了解布局,将其传递到打印对话框等.简单的方法仅需要将datagridview保存到excel文件并打印.
There is a a complex way and a simple but dirty way.
The complex way requires you to know the layout, pass it on to print dialogs, etc. The simple way just requires you to save the datagridview to an excel file and print it.


这篇关于如何从Access数据库中打印选定的列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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