https://issues.apache.org/ooo/show_bug.cgi?id=124509
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #17 from [email protected] --- verified with AOO 4.1.0 RC2 on MacOS with modified Beanshell script OO410m16(Build:9762) - Rev. 1585426 2014-04-07 10:18:35 (Mon, 07 Apr 2014) Modified script: ### // Hello World in BeanShell import com.sun.star.uno.UnoRuntime; import com.sun.star.text.XTextDocument; import com.sun.star.text.XText; import com.sun.star.text.XTextRange; String path = System.getenv("PATH"); // get the document from the scripting context which is made available to all // scripts oDoc = XSCRIPTCONTEXT.getDocument(); //get the XTextDocument interface xTextDoc = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class,oDoc); //get the XText interface xText = xTextDoc.getText(); // get an (empty) XTextRange at the end of the document xTextRange = xText.getEnd(); // set the string xTextRange.setString( "Hello World (in BeanShell) > " + path); ### -- You are receiving this mail because: You are watching all issue changes.
