vastform.blogg.se

Mathtype 6.9 word 2010
Mathtype 6.9 word 2010








mathtype 6.9 word 2010

The application associated with the shape may have been upgraded, where the previous version of the application no longer exists on the system. In order to find the correct class id for the associated program id, the application cannot just take the CLSID for the program ID. Once the determination has been made that the InlineShape is of interest to MathType, the process of finding the correct application for editing the shape begins.

#MATHTYPE 6.9 WORD 2010 HOW TO#

How to find MathType from an OLEFormat.ProgID The next step is to determine how to find MathType from this program id. If the program id is "Equation.DSMT4", MathType can edit this shape object. The program id for MathType is "Equation.DSMT4". This program id is used to find the class identification for the associated program. If the OLEFormat is non-null, there will be a property contained within the OLEFormat, its program id (OLEFormat.ProgID), associated with the shape (of type InlineShape) object. If the shape is an OLE aware object, the OLEFormat property on the InlineShape will be non-null. These shapes must then be iterated over to determine if the current iterated shape is an OLE aware object. This will allow the developer to get the current set of inline shapes by using the InvokeMember on the document. Word.InlineShapes shapes = (Word.InlineShapes)doc.GetType().InvokeMember("InlineShapes", BindingFlags.GetProperty, null, doc, null) Retrieve the shapes collection from the current word document. This collection may contain one or more OLE objects that maybe of interest to MathType. Once the active document is retrieved it can then be invoked, as seen below, to verify if there is a shape collection. Object doc = _applicationObject.GetType().InvokeMember("ActiveDocument", BindingFlags.GetProperty, null, _applicationObject, null) This is quite simply done with the following line: In order to start, edit, and show the results of operations utilizing an IDataObject, there are a few operations that first must be done.įirst the currently active Word document must be retrieved.










Mathtype 6.9 word 2010