API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.CreateView method
Creates an instance of a custom view area, storing the page, zoom percentage and location. This custom view can be invoked later.
Syntax:
Function CreateView(ByVal Name As String, ByVal OriginX As Double, ByVal OriginY As Double, Optional ByVal Zoom As Long = 0, Optional ByVal Page As Page = Nothing) As View
Parameters:
Name Type Description
Name
String
OriginX
Double
OriginY
Double
Zoom
Long
Specifies the user-defined magnification level for a customized view.
Page
Creates the view for a specified page in the document.
Remarks:
The CreateView method creates a new View object (that is, a new item in the View Manager list).
Examples:
The following VBA example creates a new view and activates it.
Sub Test()
Dim v As View
Dim x As Double, y As Double
x = ActivePage.SizeWidth / 2
y = ActivePage.SizeHeight / 2
Set v = ActiveDocument.CreateView("My New View", x, y, 200)
v.Activate 
End Sub