Category / Section
How to print a chart?
1 min read
You can print a whole chart or selected area in a chart using the print and SwitchPrinting commands, respectively. The CommandTarget property is bound to chart element.
The following code is used to print the chart.
XAML
<Button Content="Print" Command="{x:Static ApplicationCommands.Print}" CommandTarget="{Binding ElementName=Chart1}" Height="22" Width="85" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Button Content="Printing Mode" Command="{x:Static syncfusion:ChartCommands.SwitchPrinting}" CommandTarget="{Binding ElementName=Chart1}" Height="22" Width="85" HorizontalAlignment="Center" VerticalAlignment="Center"/>