OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-08-2006, 15:32
RobC
Guest
 
Posts: n/a
Post Running the Right CorelDraw Version

Hi-

I've got 3 versions of the CorelDraw Suite on my computer:11,12, & 13.

I have a program in VB.net that uses the Draw COM object. I usually use version 11 by default, and specify the 11 version by adding a reference to the draw11 library to my project.

I ran into some problems (that I won't go into specifically here) with my application that I thought might work better with version 13 rather than 11. I removed the reference to 11 in my project and substituted 13. 11 is still the version that instantiates. That's my first issue.

I then modified my code from
Code:
Draw= New Coreldraw.application
to
Code:
Draw= createobject("coreldraw.application.13")
however, this object doesn;t seem to full expose the interface that I need because the following line fails in the second case
Code:
clrBlack_Fixed = Draw.CreateFixedColor(CorelDRAW.cdrPaletteID.cdrPANTONECorel8,  497)
with the error
Quote:
Unable to cast COM object of type 'System.__ComObject' to interface type 'CorelDRAW.Color'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{F51A0029-8D23-11D2-89E7-0000861EBBD6}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
what can I do to either instantiate version 13 with 'New' or make my code work with a generic object?

Thanks,
Rob
Reply With Quote
  #2  
Old 07-08-2006, 07:55
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

check registry [HKEY_CLASSES_ROOT\CorelDRAW.Application\CurVer] for value of "CorelDRAW.Application.13"
Reply With Quote
  #3  
Old 07-08-2006, 10:47
RobC
Guest
 
Posts: n/a
Default

Thanks for the tip, but that entry shows "CorelDRAW.Application.13"

Sigh...
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
bad saved coreldraw file versin JSB CorelDRAW CS 0 19-06-2005 12:45
What are the version number for various CorelDRAW releases? Alex FAQ 1 06-05-2005 19:01
Accesing CorelDraw 10 VBA Object Model without running it dolmos CorelDRAW/Corel DESIGNER VBA 5 19-12-2003 08:52
CorelDraw 10 Version Anonymous Jigsaw Puzzle Creator 0 07-11-2003 20:10
CorelDRAW 11 and AddIn’s reanan CorelDRAW/Corel DESIGNER VBA 2 03-12-2002 15:21


All times are GMT -5. The time now is 20:00.


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