Is there a type lib for Equation.3 ?

C

CAIBird

Hi,

I have recently been coding with VC++. I use an automation client to add an
equation to a word document hereunder:
......
_Application app;
app.CreateDispatch("Word.Application");
app.SetVisible(TRUE);
_variant_t vtNULL((long)DISP_E_PARAMNOTFOUND,
VT_ERROR);
Documents docs(app.GetDocuments());
_Document _doc(docs.Add(&vtNULL,
&vtNULL,
&vtNULL,
&vtNULL));
InlineShapes shapes(_doc.GetInlineShapes());
_variant_t vtCls("Equation.3");
LPDISPATCH lpDisp =
shapes.AddOLEObject(&vtCls,
&vtNULL,
&vtNULL,
&vtNULL,
&vtNULL,
&vtNULL,
&vtNULL,
&vtNULL);

......
the equation is inserted successfully and the inserting function returns a
pointer of type LPDISPATCH to the OLE object.

My question is, how can i add more content to the equation with this pointer?
Is there a type lib for "Microsoft Equation.3"?

Thanks in advance
Joe
China
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?Q0FJQmlyZA==?=,
My question is, how can i add more content to the equation with this pointer?
Is there a type lib for "Microsoft Equation.3"?
No. Microsoft licenses this from MathType. I believe MathType does have
products with automation interfaces, but you'd have to buy those "full
versions".

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top