Some of you might also have encountered the nasty issue of CorelDraw (CorelDrw.exe) to open a new instance of CorelDraw for every CDR file being double-clicked for opening. After twiddling around and searching the web, I finally found out that CorelDraw.exe is case-sensitive for DDE commands. As such, using the DDE argument 'Open("%1")' won't do anything.The solution for CorelDraw X4 (CorelDrw.exe) is:
Application used:"C:\Tools\Office\Corel\PROGRAMS\CORELDRW.EXE" -DDE "%1"
DDE Message:[O("%1")]Application:CORELDRW_MOSDDE Application not Running:<empty>Topic:System
Corresponding registry file:-----------------------------------------Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open][HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\command]@="\"C:\\Tools\\Office\\Corel\\PROGRAMS\\CORELDRW.EXE\" -DDE \"%1\""[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec]@="[O(\"%1\")]"[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec\Application]@="CORELDRW_MOS"[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec\Topic]@="System"
Hello longimanus; I use X4 and don't have that problem. My program will just open a new window in the CorelDraw I have running.
George
Hi Longimanus,
do you know if a similar thing can be done to stop Photo-Paint opening a new instance every time we want to edit a bitmap sitting in a Draw document? It would be great to leave PP open all the time and be able to send bitmaps to it (Edit Bitmap command in Draw) without PP opening a new instance every time.
It seems silly that we can open as many images as we like within the one instance of PP by clicking on them in Windows Explorer, but sending images from Draw opens a new instance every time. It is both illogical and highly annoying.
Best regards,Brian.
Hi Brian
I agree, that's a very annoying behavior of CorelDraw.Unfortunately, I don't know how to get to the CorelDraw internals for 'Edit Bitmap'.The exported bitmap graphic object from CorelDraw to PhotoPaint seems to be of type 'Corel PHOTO-PAINT 14.0'.An attempt could be made to check the Windows registry for any CorelDraw actions concerning this kind of graphic file type.At least the path to the executable must be specified somewhere. But if there is kind of a hard-coded instruction from CorelDraw in order to edit this object, there might be no way to change this behavior...
Note:With respect to Corel PhotoPaint X4 and opening files in the Windows Environment, i.e., Fax&Picture Viewer (Ctrl-E) and the Windows Explorer (Edit), please look at: http://community.coreldraw.com/forums/t/23325.aspx
best regardsLongimanus
thanks for your response. Even though I don't have the issue you describe relating to X4, it is still very useful information to know. Thanks for sharing.
longimanus said: Some of you might also have encountered the nasty issue of CorelDraw (CorelDrw.exe) to open a new instance of CorelDraw for every CDR file being double-clicked for opening. After twiddling around and searching the web, I finally found out that CorelDraw.exe is case-sensitive for DDE commands. As such, using the DDE argument 'Open("%1")' won't do anything.The solution for CorelDraw X4 (CorelDrw.exe) is: Application used:"C:\Tools\Office\Corel\PROGRAMS\CORELDRW.EXE" -DDE "%1" DDE Message:[O("%1")]Application:CORELDRW_MOSDDE Application not Running:<empty>Topic:System Corresponding registry file:-----------------------------------------Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open][HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\command]@="\"C:\\Tools\\Office\\Corel\\PROGRAMS\\CORELDRW.EXE\" -DDE \"%1\""[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec]@="[O(\"%1\")]"[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec\Application]@="CORELDRW_MOS"[HKEY_CLASSES_ROOT\CorelDRAW.Graphic.14\shell\Open\ddeexec\Topic]@="System"
This would be perfect if it fixes the multiple launches of CorelDraw, but I don't know how to implement what you have above? Could someone explain it to me with steps? I don't know much about working in the Windows OS.
Thanks.