Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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??
Posted
Updated 16-Dec-10 18:50pm
v5
Comments
Henry Minute 14-Dec-10 9:12am    
Help you with what?

Which part are you stuck on?
nitin bhoyate 14-Dec-10 9:25am    
I want solution for above prob.. How to implement..Just Steps will help me.

Use Crystal Report or SQL Sever Reporting to achive the same...otherwise it will be a really hectic scenario.
 
Share this answer
 
Why not use the PrintDGV.vb module?
 
Share this answer
 
Comments
Steven J Jowett 14-Dec-10 10:45am    
Judging by the question, I would assume that this is a student's homework question, in which case the PrintDGV module would not be suitable (unless, of cause he is allowed to plagiarize other peoples work)
nitin bhoyate 14-Dec-10 22:53pm    
Hey Scubapro.
Actually i wanted the same . Before posting question i actually gone through it. Its great code but when i incrase the no of columns (Suppose 25) the width of column is decreasing and cell border is painted over data.
i want If my page can contain 3 columns(Consider in this example) then first three columns should be on first page
ID FirstName LastName
1 a a

after than next page should contain

ID Married Image
1 Married Img


...
...
..
Thanks for helping and one thing you are talented you got what i want. thanks again
best luck for your future

and help me.
Ni3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900