OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 03-08-2006, 14:32
Posts: n/a
Post Running the Right CorelDraw Version


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
Draw= New Coreldraw.application
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
clrBlack_Fixed = Draw.CreateFixedColor(CorelDRAW.cdrPaletteID.cdrPANTONECorel8,  497)
with the error
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?

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

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

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

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

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

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