Object Model Reference : Classes : A : Application : Methods : Application.CreateDocumentEx |
Function CreateDocumentEx(Options As StructCreateOptions) As Document
Member of Application
The CreateDocumentEx method creates a new document by using the specified settings.
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 |
Copyright 2013 Corel Corporation. All rights reserved.