Articles in this section
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"/>

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied