tags:

views:

26

answers:

2

in C# win app i displayed the data's in datagridview, in that i need to print the datagrid values same form without using report or crystal report if any codes

A: 

You could loop throught all rows and collumns then send it to the printer?

Digital Human
If i put the loop means the values are send to some other forms or some other datagrid i couldn't print the value
Lawrance Rozario
A: 

Check out the PrintDocument class and associated classes. You'll have to loop through your data and draw it to each page using GDI+ calls on each page's Graphics instance.

I don't envy your task. If you provide some concrete information I can help more, perhaps with some example code, but a highly generalized question will receive highly generalized answers.

Alex Humphrey