在 WPF 中打印 Datagrid 记录 [英] Print Datagrid records in WPF

查看:27
本文介绍了在 WPF 中打印 Datagrid 记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要打印数据网格记录.我使用了一个这样的代码,但是这个也打印了 datagrid 滚动条.我只需要记录.

I need to print datagrid records only. I used one code like this, but this one printed datagrid scroll bar also. I need only records.

PrintDialog printDlg = new PrintDialog();
printDlg.PrintVisual(grid1, "Grid Printing.");

推荐答案

如果你想在 wpf 中打印 datagrid 中的所有记录.我已经在这里回答了更好的解释.看见.在 WPF 中打印 DataGrid 中的所有数据

If you want to print all records from datagrid in wpf.I have already answere here with better explanation. see it. Print all data in the DataGrid in WPF

这篇关于在 WPF 中打印 Datagrid 记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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