1

我的平台是 ModernUI 我想打印我的 DataGrid 但结果是镜像的!就像你在镜子里看到一个字一样。

XAML

<DataGrid Name="LT_Persons" Grid.Row="0" Grid.Column="0" Width="auto" FontFamily="B        Nazanin" AutoGenerateColumns="False"
                     FontSize="12" HorizontalAlignment="Left" HorizontalContentAlignment="Right" CanUserAddRows="False" FlowDirection="RightToLeft">
                    <DataGrid.Columns></DataGrid.Columns>                                                                         

<Button Name="Print" Grid.Row="1" Margin="0,30,25,22" Content="پرینت" Click="Print_Click" Width="55" HorizontalAlignment="Right"/>

C#

 private void Print_Click(object sender, RoutedEventArgs e)
    {
        PrintDialog pd = new PrintDialog();
        pd.PrintVisual(LT_Persons, "افراد");
    }
4

0 回答 0