OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > Corel PHOTO-PAINT > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26-07-2007, 23:02
lexcse
Guest
 
Posts: n/a
Default Corel PhotoPaint on C#/C++

how do i create/use Application.CorelScript object in C++/C#?

I used this code in C#

PHOTOPAINT. APPLICATION photoApp = new PHOTOPAINT.Application();
public object imageGamma;
...
imageGamma = photoApp.CorelScript();
imageGamma.ImageGamma(value);

...this code has errors

ive tried casting:
(CorelScript)(imageGamma).ImageGamma(value);

...this wont work either

ive also tried:

public CorelSript imageGamma;

imageGamma = photoApp.CorelScript(); / imageGamma = (CorelScript)photoApp.CorelScript();
iimageGamma.ImageGamma(value);

...still doesn't work

i've been using scripting for coreldraw since coreldraw8 days. And i've been programming for corelDraw and photopaint for 3 years using C++ and C#. This is the first time i will be using image adjustment tools of photopaint and i am having problems with it.

Can someone pls help me out.

tnx
Reply With Quote
  #2  
Old 27-07-2007, 14:56
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

probably CorelScript is not exported via ObjectModel.
Use regular (newer than corelscript) object model.
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
Looking for VBA or Corel Script for cabinet design HomeDesignerDavid Macros/Add-ons 2 22-03-2011 18:25
Corel 8.232 Help xsc General 3 31-07-2006 12:38
corel draw 11 and Corel Trace 11 BEAMA General 2 04-08-2005 20:39
Type Mismatch error in Corel PhotoPaint V9 NEHovis Corel Photo-Paint VBA 2 17-07-2003 05:19
Corel Capture 8 and Corel Script Helix CorelDRAW CS 0 13-12-2002 19:10


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


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