OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > FAQ

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27-04-2005, 12:09
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default How to use old scripts (.CSC) with CorelDRAW?

I have old script files (.csc) but when I try to run them through Tools>Run Script I get an error message "Run-time error 611. Could not create objects". Is there a way to use scripts from, say, CorelDRAW 9 in later versions of the application?
Reply With Quote
  #2  
Old 24-05-2005, 10:51
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

A CorelScript file (.csc) has a reference to the application version it was created for. So, if a script was created for CorelDRAW 9, it can't be used with any other version other than 9.

However there haven't been much changes to CorelScript since version 9, so the actual commands didn't change much and pretty much all scripts created for Draw 9 should still run under Draw 10-12. In order to make an old script to run under a newer version of CorelDRAW, you need to do the following changes:

1. Open the script file in a text editor. You can use Notepad for this.
2. It should contain a string similar to this:
Code:
...
WITHOBJECT "CorelDRAW.Automation.9"
...
3. Just replace the 9 with the actual version of the application. If you intend to use the script under CorelDRAW 12, then just replace the above string with
Code:
WITHOBJECT "CorelDRAW.Automation.12"
In some scripts, the version could be encoded some other way, but in most cases you should be able to find it if you look for string "CorelDRAW.Automation".

After you do the change, just save the script back and go to CorelDRAW and run it through Tools>Run Script... dialog.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bring Coreldraw to front of other windows. CORNMEN CorelDRAW/Corel DESIGNER VBA 4 14-01-2005 15:38
CorelDRAW 12 SP1 is available Alex CorelDRAW/Corel DESIGNER VBA 1 04-08-2004 01:43
Accesing CorelDraw 10 VBA Object Model without running it dolmos CorelDRAW/Corel DESIGNER VBA 5 19-12-2003 07:52
Link in CorelDraw 11 met CorelDRAW/Corel DESIGNER VBA 0 25-03-2003 08:17
Creating macros for CorelDraw 10 in CorelDraw 11 Rick Randall CorelDRAW/Corel DESIGNER VBA 1 14-03-2003 08:00


All times are GMT -5. The time now is 01:45.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com