Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Is there a type lib for Equation.3 ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CAIBird - 07 Mar 2006 11:42 GMT
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
Cindy M  -WordMVP- - 07 Mar 2006 22:00 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.