本文介绍了使用可扫描数据在wpf中打印数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个数据网格,其中数据是从mysql加载的。
I have a datagrid in which data is loaded from mysql.
<DataGrid AutoGenerateColumns="True" FontSize="15" FontFamily="Times New Roman" FontWeight="Bold" Height="271" HorizontalAlignment="Center" HorizontalScrollBarVisibility="Auto" Margin="12,303,13,12" Name="dataGrid1" VerticalAlignment="Center" VerticalScrollBarVisibility="Auto" Width="953" Background="AliceBlue" AlternatingRowBackground="#FFEBCF91" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
这有很多列的数据列表。我只是想打印这个网格的全部内容。当我尝试时,它只是通过printdailog打印可见数据。如何打印所有数据。
提前致谢
This have a long list of data with many columns. I just want to print the whole content of this grid as it is. When i am trying, it is only printing visible data by printdailog. How to print all the data.
Thanks in advance
推荐答案
这篇关于使用可扫描数据在wpf中打印数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!