Previous Document Next Document

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


Application.CorelScript

Function CorelScript() As Object

Description

Member of Application

The CorelScript method creates a Corel SCRIPT object to which you can pass Corel SCRIPT commands.

VBA example

The following VBA example creates a new document and adds a rectangle to it using the Corel SCRIPT object model.

Sub ApplicationCorelScript()
 Dim cs As Object
 Set cs = CorelScript
 cs.FileNew
 cs.CreateRectangle 100000, -100000, -100000, 100000, 0, 0, 0, 0
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.