OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-04-2004, 03:17
adriano
Guest
 
Posts: n/a
Default Load a corel script and execute it

I want to load an existing corel script in vba and execute it.
Any idea how to do this ?
Thanks
Reply With Quote
  #2  
Old 08-04-2004, 08:39
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Load a corel script and execute it

You can use CorelScriptFile object for this. Here is how you do it in VBA:

Code:
Sub Test()
    Dim csf As CorelScriptFile
    Set csf = OpenCorelScriptFile("C:\Scripts\MyScript.csc")
    csf.Play ActiveDocument
End Sub
I hope this helps
Reply With Quote
  #3  
Old 14-04-2004, 10:15
adriano
Guest
 
Posts: n/a
Default Thanks

Thanks for your prompt answer
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
File Converter script error CorelDummy CorelDRAW/Corel DESIGNER VBA 2 25-01-2005 08:38


All times are GMT -5. The time now is 22:08.


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