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 02-12-2002, 16:36
reanan
Guest
 
Posts: n/a
Default CorelDRAW 11 and AddIn’s

I am getting desperate about CorelDRAW version 11 and VB related items.

Whenever I use an AddIn for CorelDraw 11 it does not register in the correct location in the registry. Instead of registering itself in:

“HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW\Addins”

it registers itself (most of the time) in:

“HKEY_CURRENT_USER\Software\Corel\CorelDRAW\10.0\Addins”.


Example:
Open the “CropMarksAddin” project (http://www.oberonplace.com/vba/CropMarksAddin.zip).
Change in the Connect object “Application version = 10.0” in “Application version = 11.0”.
Save the project.
Open the “connect.dsr” file in notepad and look up “RegLocation”, this says:

RegLocation = "HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW"

Nice, looks promising, now close notepad.
Run the project with full compile.
Do not even bother to open CorelDRAW 11 but go right to the registry and find:

"HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW\Addins"

There is no add-in there!
Now go to:

"HKEY_CURRENT_USER\Software\Corel\CorelDRAW\10.0\Addins"

There you will find “CropMarks.Connect”.

No matter how many times you change the value of “RegLocation” in the “connect.dsr” file (with notepad for example) it will always register itself in the add-in section of CorelDRAW 10. There is one way to get the Add-in in it’s correct registry location but that is not usable:

Change in the Connect object the “Application version” to “10.0”.
Run the project with full compile.
Close the application with the “Break button”.
Change in the Connect object the “Application version” to “11.0”.
Directly without doing anything else run the project with full compile.
Now it is in the correct registry location.
But the next time you run the project it will be in the wrong location again.

Can anyone help me?
Reply With Quote
  #2  
Old 03-12-2002, 11:23
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: CorelDRAW 11 and AddIn’s

René,

I had similar experience with Draw 11 on a machine that has Draw 10 installed also. However I tend to belive that it is not CorelDRAW's fault but rather the Microsoft Addin designer. CorelDRAW just provides the registry key name for the addins (look under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\AddIn Designer key). This information seems to be correct. However if there is more than 1 version listed under a particular application key, the Addin Designer seems to get confused and uses the first entry (which happens to be for Draw 10 in this case). I found that if you select another application in the Addin Designer's application list box (for example, Microsoft Word or something else that is available apart from CorelDRAW) and then select CorelDRAW back and choose the proper version (11.0) and compile your addin, it will register properly. However as soon as you close the project and re-open it again and try to compile, it will again go under CorelDRAW 10 registry key... You will need to remember to re-assign Draw 11 each time you compile or run your addin from VB.
Reply With Quote
  #3  
Old 03-12-2002, 14:21
reanan
Guest
 
Posts: n/a
Default

Thanks Alex,

This method seems to work. Let’s hope I never forget to switch between applications in the designer (I already did forget it twice and was wondering where my AddIn did go...). Let’s also hope that Microsoft finds a solution to this problem. If I ever find a more permanent solution I will post it here.

René

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


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


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