Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Esteemed Monks,

We can access the ms-word by using the following:

use Win32::OLE::Const 'Microsoft Word'; my $wd = Win32::OLE->GetActiveObject('Word.Application');

Can we access MathType Application by using perl

If so, please let me know the Module Name, and its object.

Thanks you,

Replies are listed 'Best First'.
Re: Access MathType
by ikegami (Patriarch) on Jan 07, 2006 at 08:16 UTC

    Most applications are NOT OLE/ActiveX objects. However, the results of a google search for MathType OLE indicates MathType might very well be:

    In reality, MathType 4.0 is an OLE 2.0 object server, allowing equation. objects to be placed in documents created by any application that supports ...

    On a machine that has MathType installed, use the object browser that comes with ActivePerl. Check for objects with MathType (or similar) in their name. This tool can also be used to list the methods and properties controls provide.

Re: Access MathType
by planetscape (Chancellor) on Jan 08, 2006 at 00:59 UTC

    You may already have on your machine something called "OLE Browser" or "Type Library Browser" if you installed Win32-OLE-0.1403 or upgraded from that to a later version. You might find it in C:\Perl\html\OLE-Browser or C:\Perl\html\lib\site\Win32\OLE depending on your install.

    HTH,

    planetscape