API Documentation > CorelDRAW > 2025-v26 > ActiveView > IVGActiveView
ActiveView.ToFitPageHeight method
Fits the active view to the page height
Syntax:
Sub ToFitPageHeight()
Remarks:
The ToFitPageHeight method changes the active view to fit the entire page height of the current document into the application window. This method places the top and bottom borders of the active page to the top and bottom borders of the application window, adjusting the zoom level so that these page boundaries fit the entire view space.
Examples:
The following VBA example adjusts the zoom level so that the active view fits the height of the page in the active document. This changes the appearance of the active view in that the entire view space is now occupied by the height of the active page.
Sub ToFitPageHeight()
ActiveWindow.ActiveView.ToFitPageHeight 
End Sub