https://bugs.freedesktop.org/show_bug.cgi?id=45892
--- Comment #25 from Pierre Farrugia <pierresan...@gmail.com> --- (In reply to Beluga from comment #24) > (In reply to Pierre Farrugia from comment #23) > > 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 > > Running this on 4.4 I get > > BASIC runtime error. > Object variable not set. > > ..pointing to the line before End Sub. Use of the script is not required. It is simply an easy way of opening a MathType instance. I found the instructions on the internet and it worked well with the version of LibreOffice I used. Given that the problem manifest itself in any way the MathType instance is inserted it is immaterial if the script does not work. The manual insertion of the MathType instance should work in all cases. Hence, I suggest you proceed with the manual insertion. -- 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