Corel

Páginas: 123 (30611 palabras) Publicado: 13 de marzo de 2012
CorelDRAW® Graphics Suite 12 Programming Guide for VBA The contents of this programming guide and the associated CorelDRAW software are the property of Corel Corporation and its respective licensors, and are protected by copyright. For more complete copyright information about CorelDRAW please refer to the About CorelDRAW section in the Help menu of the software. , Copyright 2002–2003 CorelCorporation. All rights reserved. Corel, the Corel logo, CorelDRAW Corel PHOTO-PAINT, Corel SCRIPT, and WordPerfect are trademarks or registered , trademarks of Corel Corporation and/or its subsidiaries in Canada, the U.S., and/or other countries. Microsoft, Visual Basic, Visual Studio, ActiveX, and Windows are registered trademarks of Microsoft Corporation in the United States and/or other countries.AutoCAD is a registered trademark of Autodesk, Inc. Borland and Delphi are trademarks or registered trademarks of Borland Software Corporation. IntelliCAD is a registered trademark of IntelliCAD T echnology Consortium. Java is a trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc. in the U.S. and other countries. PostScript is a registered trademarkof Adobe Systems Incorporated in the United States and/or other countries. Other product, font, and company names and logos may be trademarks or registered trademarks of their respective companies.

Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . 1
What's the purpose of this guide? . . . . . . . . . . . . . . . . . . . . . . . 1 Who should use this guide? . . . . . .. . . . . . . . . . . . . . . . . . . 1 How to use this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 About CorelDRAW . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 About VBA in CorelDRAW . . . . . . . . . . . . . . . . . . . . . . . . . 1

About Corel Corporation . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Writing and running macros in CorelDRAW .
TheVBA toolbar in CorelDRAW

.

.

.

.

.

.

.

.

.

.

.

.

.

3

Installing VBA for CorelDRAW . . . . . . . . . . . . . . . . . . . . . . . . 3 . . . . . . . . . . . . . . . . . . . . . . . 3

Writing a macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Writing macros in the VB Editor . . . . . . . . . . . . . . . . . . . . . . . 4 Recording macros. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Running a macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Introducing automation and VBA
VBA for non-programmers

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

What is automation? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . . .. . . . 6

VBA for programmers . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 The main features of VBA structure and syntax . . . . . . . . . . . . . . . . . . . 7 Comparing VBA to other programming languages . . . . . . . . . . . . . . . . . 12

Visual Basic Editor .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

Starting theVisual Basic Editor from CorelDRAW . . . . . . . . . . . . . . . . . 14

CorelDRAW Graphics Suite 12 Programming Guide for VBA

i

Visual Basic Editor user interface . . . . . . . . . . . . . . . . . . . . . . . 14 Project Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Properties Window . . . . . .. . . . . . . . . . . . . . . . . . . . . 17 Code window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Form Designer window . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Object Browser window. . . . . . . . . . . . . . . . . . . . . . . . . . 26 Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

About objects and object models

.

.

.

....
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • corel
  • Corel
  • corel
  • Corel
  • Corel
  • corel
  • corel
  • Corel

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS