FlexViewer for WPF > FlexViewer Features > Rotate View of Reports |
FlexViewer provides flexibility to rotate the view of reports to different angles according to your requirements. To rotate view of a report to various degrees of rotation, set the RotateView property of C1FlexViewer class. The RotateView property accepts the values from the FlexViewerRotateView enum describing the rotation angle of the view.
The image shows a report rotated at 180 degrees in clockwise direction.
To rotate the view of a report in XAML view, use the RotateView property as shown in the following code. Here, we are setting the RotateView of the FlexReport to 180 degrees:
XAML |
Copy Code
|
---|---|
<c1:C1FlexViewer x:Name="Viewer" HorizontalAlignment="Left" VerticalAlignment="Top" Height="580" Width="782" Margin="0,30,0,0" RotateView="Rotation180"/> |
The following code uses of FlexViewerRotateView enum for rotating the view of the report by 90 degree clockwise. This example uses sample created in FlexReport Quick Start.
Viewer.RotateView = FlexViewerRotateView.Rotation180
//Setting rotation of the view
Viewer.RotateView = FlexViewerRotateView.Rotation180;
Similarly, you can rotate the view of a report by 90 degrees in counter-clockwise direction and 180 degrees.