Prev: Need white text headings (1 word) highlighted black. There's a
Next: Word Document (2003) the top margin
From: Vladislav on 11 Mar 2010 05:13 Hi Bob! Help me please! How can I extract baseline information from MathType and Equation OLE objects? I read MathType SDK documentation section about extracting this information from WMF, but I can?t find how to extract baseline info from OLE objects. Here is text from MathType SDK documentation: Applications that support baseline positioning can process all objects at import/editing time by either scanning the metafile as described above or, if the object is an OLE object (Microsoft?s Object Linking and Embedding technology), performance may be increased by checking first to see if the object is a MathType/Equation Editor equation object. Thanks for your answers. Vladislav Erokhin Bob Mathews wrote: The "size" issue is because the equation editor is not able to keepstyles 01-Mar-10 The "size" issue is because the equation editor is not able to keep styles separately for each equation, the way that MathType can. You may be successful when inserting equations, to have them set to several different font & size styles, but as you discovered, when you save and reopen the document, it is not as you left it. Copying a large Word document and pasting it into another is probably not ever a good idea, even if the new document starts out as a blank document. If you absolutely have to keep it as one document, there are a few things you can do to reduce the file size, but you should give primary consideration to making several smaller documents in place of the large one. You've seen one problem that can arise with the equations, but as a rule we do not recommend copying an equation from one document and pasting into another (or even within the same one). Actually that will work out all right some of the time, and perhaps even most of the time, but at some point Word will lose some of the OLE information in the equation object (that is the information that tells it the object came from Equation Editor). If that happens, you will probably not know it right away; you will only discover it when you try to edit the equation, but Word thinks it is a picture, and will not open it up in Equation Editor. The way to prevent this is to copy the equation, open Equation Editor as if you were going to create a new equation, then paste the equation inside the equation editing space and close Equation Editor. None of these are perfect solutions, but keeping the document size "small" to begin with is the closest you will come to a perfect solution. The definition of "small" all depends on how many objects are in the document -- equations, pictures, charts, etc. -- and how it is formatted. -- Bob Mathews Director of Training Design Science, Inc. bobm at dessci.com http://www.dessci.com/free.asp?free=news FREE fully-functional 30-day evaluation of MathType MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor On 28-Feb-2010, ion wrote: Previous Posts In This Thread: Submitted via EggHeadCafe - Software Developer Portal of Choice WPF Custom Validation Using the Enterprise Library http://www.eggheadcafe.com/tutorials/aspnet/9af7ac1a-d7f3-4e00-9aec-33ef1ec7d1a3/wpf-custom-validation-usi.aspx
From: Bob Mathews on 12 Mar 2010 15:25 Hi Vladislav, Hope these thoughts are of some help... The MathType SDK includes a sample called "OLECont" that demonstrates how to get the baseline info from an OLE object by enumerating the embedded WMF. If you are working with equations that are being copied to the clipboard, you can also use the function MTGetLastDimension to retrieve the baseline. This function is described in the MathType API documentation. -- Bob Mathews Director of Training Design Science, Inc. bobm at dessci.com http://www.dessci.com/free.asp?free=news FREE fully-functional 30-day evaluation of MathType MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor On 11-Mar-2010, Vladislav Yerokhin wrote: > Help me please! How can I extract baseline information from > MathType and Equation OLE objects? I read MathType SDK > documentation section about extracting this information from > WMF, but I can't find how to extract baseline info from OLE objects.
From: Vladislav Yerokhin on 15 Mar 2010 05:07 Thanks, Bob! Your reply is helpful. This approach is applicable only to MathType. This is approximately 75% of the formulas in our documents. But we have formulas edited in Microsoft Equation. I need to write a program that iterates on the formulas in the Word document and sets vertical alignment to baseline. How Microsoft Equation or MathType sends baseline information to Word when equation editor updates formula?
From: Bob Mathews on 16 Mar 2010 12:45
Vladislav, in the SDK is a function named ConvertEquations. This will convert the Equation Editor equations into MathType equations. If you use this function, you'll be able to get the baseline info. -- Bob Mathews Director of Training Design Science, Inc. bobm at dessci.com http://www.dessci.com/free.asp?free=news FREE fully-functional 30-day evaluation of MathType MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor On 15-Mar-2010, Vladislav Yerokhin wrote: > This approach is applicable only to MathType. This is > approximately 75% of the formulas in our documents. > But we have formulas edited in Microsoft Equation. |