Understanding the CorelDRAW object model : Working with documents : Opening documents |
To open a document, you can use the Application.OpenDocument method.
Dim doc As Document |
Set doc = OpenDocument("C:\graphic1.cdr") |
If you want, you can use event handlers to respond to events that are triggered by opening a document:
• |
Application.DocumentOpen
|
• |
Document.Open
|
• |
GlobalMacroStorage.DocumentOpen
|
Copyright 2013 Corel Corporation. All rights reserved.