API Documentation > CorelDRAW > 2025-v26 > globalmacrostorage
globalmacrostorage.DocumentNew event
Invoked when a new document is created
Syntax:
Event DocumentNew(ByVal Doc As Document, ByVal FromTemplate As Boolean, ByVal Template As String, ByVal IncludeGraphics As Boolean)
Parameters:
Name Type Description
Doc
FromTemplate
Boolean
Template
String
IncludeGraphics
Boolean