API Documentation > CorelDRAW > 2025-v26 > Application > IVGApplication
Application.CreateDocumentEx method
Creates a new document and allows to specify additional options
Syntax:
Function CreateDocumentEx(ByVal Options As StructCreateOptions) As Document
Parameters:
Name Type Description
Options
Remarks:
The CreateDocumentEx method creates a new document by using the specified settings.
Examples:
Here is a code example:
Sub Test()
Dim d As Document
Dim so As StructCreateOptions

Set so = CreateStructCreateOptions
With so
  .Name = "CreateDocumentEx Sample"
  .PageHeight = 10
  .PageWidth = 10
  .Resolution = 300
  .Units = cdrPixel
End With
Set d = CreateDocumentEx(so) 
End Sub