You can insert and edit new equations using the editor built into Office version 2007 or later.
For more information about the security issue, see CVE-2017-11882 | Microsoft Office Memory Corruption Vulnerability. Microsoft recommends using the built-in equation editing tools instead: Įquation Editor 3.0 is a third-party component built by Design Science ( ) that was included in many versions of Office, but due to security issues with its implementation, it has been removed. This functionality has been removed by the vendor due to security issues.ĭetails about this changes are referenced here: This can be beneficial to other community members reading this thread.Microsoft Equation Editor 3.0 is no longer available in any Office Suites. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not.
#INSTALL MICROSOFT EQUATION 3.0 WORD 2013 CODE#
If you have issues to generate the code or check the api, I suggest you share a sample document with some equations Since this thread has been closed, I suggest you post a new thread for your issue., so that we could have a deep research for your issue. Them and you could try to generate code for some new parts. You could download the tool from Then you could check the difference between I would suggest you use Open XML SDK Tool to compare this kind of documents and the tool could help generate most of the code. Create two documents, one has some equations and the other doesn't. The following are the XML data for a simple e quation 1+2=3 However, if you create the e quation s by Return new System.IO.MemoryStream(64String(base64String)) Private System.IO.Stream GetBinaryDataStream(string base64String) Private string partData = "183GmgAAAAAAAGAFwAECCQAAAACzWgEACQAAA+EAAAACABwAAAAAAAUAAAAJAgAAAAAFAAAAAgEBAAAABQAAAAEC////AAUAAAAuARgAAAAFAAAACwIAAAAABQAAAAwCwAFgBRIAAAAmBg8AGgD/////AAAQAAAAwP///8b///8gBQAAhgEAAAsAAAAmBg8ADABNYXRoVHlwZQAAMAAcAAAA+wKA/gAAAAAAAJABAAAAAAQCABBUaW1lcyBOZXcgUm9tYW4A/v///6EWCrAAAAoAAAAAAAQAAAAtAQAACAAAADIKYAFqBAEAAAAzeQgAAAA圜mABIAIBAAAAMnkIAAAAMgpgARAAAQAAADF5HAAAAPsCgP4AAAAAAACQAQAAAAIEAgAQU3ltYm9sAAAwlZd1LebqX/7///+PDwolAAAKAAAAAAAEAAAALQEBAAQAAADwAQAACAAAADIKYAE/AwEAAAA9eQgAAAA圜mAB+gABAAAAK3kKAAAAJgYPAAoA/////wEAAAAAABwAAAD7AhAABwAAAAAAvAIAAACGAQICIlN5c3RlbQB1SQCKAQAACgAGAAAASQCKAQAAAABk7RkABAAAAC0BAAAEAAAA8AEBAAMAAAAAAA=" System.IO.Stream data = GetBinaryDataStream(partData) Private void GeneratePartContent(ImagePart part) Public void CreateImagePart(ImagePart part) Adds child parts and generates content of the specified part. So if we want to read its content, we need to export the data as an image. Please see the reflected code of an simple equation(1+2=3) below. Microsoft Equation 3.0 add-in, the e quation content is actually store d asīinary Data in the stream and appended to the document, and then displayed as. > Is there any way to read the Equation content instead of saving it as Image? Microsoft Word is obviously using some process to convert these ImagesĮquation.DSMT4 ) add-in or the Math Type add-in. While ((len = input.Read(buffer, 0, buffer.Length)) > 0) Public static void CopyStream(Stream input, Stream output) Using (Stream file = File.Create("C:\\Users\\Administrator\\Desktop\\"+"Doc"+i+".wmf")) Stream data = imagePart.GetStream(FileMode.Open,FileAccess.Read)
Var imagePart = mainDoc.GetPartById(id.Value) V.ImageData datas = shape.Descendants().FirstOrDefault() If (oleObject.ProgId = "Equation.3")// in your case, ProgId should be Equation.DSMT4įoreach (V.Shape shape in document.Descendants()) MainDocumentPart mainDoc = doc.MainDocumentPart įoreach (Ovml.OleObject oleObject in document.Descendants()) String strDoc = (WordprocessingDocument doc =WordprocessingDocument.Open(strDoc, false)) You can refer to the following code to export all the equation contents.
#INSTALL MICROSOFT EQUATION 3.0 WORD 2013 HOW TO#
how to get the content from these files programatically using C#