https://bugs.freedesktop.org/show_bug.cgi?id=45892

--- Comment #23 from Pierre Farrugia <pierresan...@gmail.com> ---
Dear Joel,

The steps to follow are these:

1. Open an document in Writer.
2. Insert a MathType equation using: Insert -> OLE Object -> Further Objects ->
Microsoft Equation 3.0 (or MathType; should be the same). Write something in it
and close.
3. Repeat Step 2 eleven or more times.
4. Try to insert a Math (LibreOffice) formula.

The error will appear at this point.

Personally I use the following macro to insert the MathType more quickly,

sub InsertMathTypeFormulaInWriter
dim oTargetDocument as variant
oTargetDocument = ThisComponent
dim oCurrentController as variant
oCurrentController = oTargetDocument.getCurrentController()
dim oFormula as variant
oFormula =
oTargetDocument.createInstance("com.sun.star.text.TextEmbeddedObject") 
oFormula.CLSID = "0002CE03-0000-0000-C000-000000000046"
oFormula.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER
oFormula.attach(oCurrentController.Selection.getByIndex(0) )
dim oXCOEO as variant: oXCOEO = oFormula.ExtendedControlOverEmbeddedObject
oXCOEO.doVerb(com.sun.star.embed.EmbedVerbs.MS_OLEVERB_PRIMARY)
End Sub

The error is reproducible both if you use the macro as well as if you insert
manually the MathType instance.

I am running LibreOffice 3.6.2.2 on XP at the moment.

Hope this information is enough. If you need anything else just let me know.

Cheers

Pierre




(In reply to comment #22)
> Hi Pierre -
> 
> So I installed a 30 day trial of MathType - if you can give EXACT
> reproducible steps (give the steps both in MathType -- which I am unfamiliar
> with -- and LibreOffice). What does it mean to "insert" (you mean
> copy/paste). Be as specific as possible and then I will try to confirm the
> issue. 
> 
> Thanks for your tremendous patience on this one
> 
> Also please don't respond via email, it makes reading the comments much
> harder. Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to