开发者

Print datagrid values

开发者 https://www.devze.com 2023-01-08 08:10 出处:网络
in C# win app i displayed the d开发者_如何转开发ata\'s in datagridview, in that i need to print the datagrid values same form without using report or crystal report if any codesYou could loop throught

in C# win app i displayed the d开发者_如何转开发ata's in datagridview, in that i need to print the datagrid values same form without using report or crystal report if any codes


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号