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