打印datagridview(其中包含无限列) [英] Printing the datagridview(With Unlimited columns in It)

查看:67
本文介绍了打印datagridview(其中包含无限列)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

我要创建一个新项目.
在这种情况下,我想按场景打印整个DataGridView.

考虑学生的例子和学科分数
我正在为用户提供添加学生和学科的便利.

假设用户添加了10个科目和10个学生
然后我想从所有学生和学科的数据库中检索数据到DataGridView并将其打印.

StudentName Sub1 Sub2 Sub3 Sub4 ............
尼丁10 20 30 40 ...........
模拟20 10 50 60 .........
Xyz
. . . . .
. . . . . . . . .
.
.
.


我觉得你有问题吗?

有时我只想打印4个主题,有时只打印所有主题和学生,有时只打印10个主题.

请帮帮我.


Hello friends,

I am going to create new project.
In that I want to print the whole DataGridView as it is the scenario will be.

Consider the example of the Student and Marks for Subject
I am providing facility of user to add Student and Subjects.

Suppose user added 10 Subjects and 10 Students
then I want to retrieve data from database for all students and Subjects into DataGridView and print it.

StudentName Sub1 Sub2 Sub3 Sub4 ............
Nitin 10 20 30 40 ...........
Mock 20 10 50 60 .........
Xyz
. . . . .
. . . . . . . . .
.
.
.


I think you get problem?

Sometimes I want to print only 4 Subjects, sometimes all Subjects and Students, sometimes 10 Subjects.

Please help me.


Is There Anyone??

推荐答案

使用Crystal Report或SQL Sever Reporting实现相同的功能...否则,这将是一个非常忙碌的情况.
Use Crystal Report or SQL Sever Reporting to achive the same...otherwise it will be a really hectic scenario.


为什么不使用 PrintDGV.vb 模块?


这篇关于打印datagridview(其中包含无限列)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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