OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Thread Tools Search this Thread Display Modes
Old 06-02-2009, 14:51
Posts: n/a
Default RunMacro in the ActiveDocument

With an external application (vb.net) I want start a Macro in the active document with the following Code.

objGmsManager.RunMacro("VBAProject", "Modul1.Main")

It seems that a project in an open document ist not interpreted as an GobalMacro.

The following code works fine.

objGmsManager.RunMacro("GlobalMacros", "RecordedMacros.Macro3")

Have someone an solution to start a macro in the active document ?
Reply With Quote
Old 25-01-2010, 09:45
Posts: n/a

Hi, I had the same problem in C#. So I use code similar to your:

gms = CDRApp.GMSManager;
object[] args = new object[0];
args[0] = ..........;
gms.RunMacro("GlobalMacros", "RecordedMacros.Macros1", ref args);
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
Calling Coreldraw RunMacro from C++ ... Toroid CorelDRAW/Corel DESIGNER VBA 2 18-08-2008 17:29
Help with ActiveDocument.PublishToPDF pbisson Corel Photo-Paint VBA 5 03-01-2007 20:37
Help with ActiveDocument.PublishToPDF pbisson Macros/Add-ons 0 15-12-2006 16:27
RunMacro from .NET JeSert CorelDRAW/Corel DESIGNER VBA 1 14-06-2005 12:31
Corel10 _ENG module not found error while RunMacro Angel CorelDRAW/Corel DESIGNER VBA 2 15-02-2005 10:03

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

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