API Documentation > CorelDRAW > 2025-v26 > Application > IVGApplication
Application.CreateDocument method
Creates a new document
Syntax:
Function CreateDocument() As Document
Remarks:
The CreateDocument method creates a new CorelDRAW document.
Examples:
The following VBA example creates a new CorelDRAW document, adds a colored ellipse to the active layer of the document, and saves the new document with a new name.
Sub DocumentCreate()
Dim doc As Document
Set doc = CreateDocument()
doc.ActiveLayer.CreateEllipse (0, 3, 5, 1).Fill.UniformColor.CMYKAssign 0, 100, 100, 0
doc.SaveAs "C:\My New Document" 
End Sub