OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 16-11-2008, 17:49
Posts: n/a
Default "error" in Corel Script file

I need to process about 8000 images in PP12, but the limit for the batch processor is less than 1000. I could break up the job, but I figured I could quickly (!) write a VBA script to do it for me.

I adapted another script I had to loop thru the folder, and had the script call a Corel Script file to do the actual processing of the image:

WITHOBJECT "CorelPhotoPaint.Automation.12"
.BitmapEffect "Desaturate", "DesaturateEffect "
.BitmapEffect "Color Hue", "ColorHueEffect ColorHueShadows=1,ColorHueMidtones=1,ColorHueHighlights=1,ColorHueLuminance=1,ClrBalanceCyanRed=20,ClrBalanceMagentaGreen=0,ClrBalanceYellowBlue=-30,ColorHueStep=10"

I got this from the undo docker.

When my VBA script calls the CSF, though, I receive an error which says, "Script scripts contains an error and not be run." Using the debugger, I verified it was the CSF receiving the error.

Any ideas?
Reply With Quote
Old 18-11-2008, 17:42
Posts: n/a

Solved it. Stupid oversight. Thanks anyway.
Reply With Quote

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
Using subs from another module, "Object Required" error Sablesword CorelDRAW/Corel DESIGNER VBA 2 27-09-2008 23:41
"Failed to Create New Document" error message Alex FAQ 1 20-06-2007 14:07
Corel Script "user32.dll" SetWindowPos richard_austria CorelDRAW CS 0 02-06-2005 07:45
"Failed to create new document" error Rick Randall CorelDRAW/Corel DESIGNER VBA 3 08-03-2004 15:55
"Unexpected condition" error message (with code) s_federici CorelDRAW/Corel DESIGNER VBA 10 10-07-2003 21:46

All times are GMT -5. The time now is 06:23.

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