I am attempting to develop a macro/application in VB.NET that gets information from the current open instance of CorelDRAW 2018. I am attempting to use the following line of code:
ActiveCorelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("CorelDRAW.Application.20")
This line does not work (throws a "COMException"). I've done a lot of research and this appears to be the correct way to do this but it's not working.
I downloaded an ROT (Running Objects Table) viewer and it does not appear that CorelDRAW is registered to the ROT even though it is running (which would explain why "GetActiveObject()" can't find it).
Does anyone know how to get this to work?
I have not found a solution to this despite spending more time looking and requesting for help on other forums. Does anyone have any idea why this isn't working or why Corel won't register to the ROT?
Hi,
What file type is important to you guys?
Is CDR only OK?
I'm not sure I understand the relevence of your question, but yes, CDR files are the only files we edit in CorelDRAW (if that's what you're asking).
Perfect thanks!