Previous Document Next Document

Object Model Reference : Classes : A : Application : Methods : Application.CreateDocumentEx


Application.CreateDocumentEx

Function CreateDocumentEx(Options As StructCreateOptions) As Document

Description

Member of Application

The CreateDocumentEx method creates a new document by using the specified settings.

Parameter
Description
Options
Specifies the settings to apply to the new document

Example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.