WinUI | ComponentOne
Controls / FlexViewer (Beta) / Rotate Documents
In This Topic
    Rotate Documents
    In This Topic

    FlexViewer provides you the 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, you can set the RotateView property of FlexViewer class. The RotateView property accepts the following values from the FlexViewerRotateView enumeration which describes the rotation angle of the view:

    Flexviewer Rotation

    Rotate View of Report at Runtime

    At runtime, you can rotate the view of a report in clockwise or anti-clockwise direction from the View dropdown list on the top right corner of the FlexViewer control.

    Rotate View of Report Programmatically

    To rotate view of a report, use the RotateView property as shown in the following code:

    <c1:FlexViewer Name="fv" RotateView="Rotation90Clockwise" Height="600" Width="900" VerticalAlignment="Top"></c1:FlexViewer>
    
    fv.RotateView = FlexViewerRotateView.Rotation90Clockwise