Hi.I'm trying to use JavaScript to automate export .eps files from Draw (combining JavaScript learning with smth I actually need).I've seen some examples from the web that do that in Basic or Java.The issue I'm facing is when trying to pass filter-specific properties to the doc.storeToURL() method.Here are the relevant lines:

Trying to pass filter_props as a value for "FilterData" throws an exception from "[map_to_uno():any] UNO type not found: org.mozilla.javascript.NativeArray ..."

There are examples of such code in Java on the web. For Python, there appears to be explicit use of uno.Any() when assigning FilterData value.Anybody knows how exactly this should work with JavaScript?

I am not really working with JavaScript as macro language for OpenOffice, but I remember that there is a sample macro in Basis/share/Scripts/javascript called exportsheetstohtml.js. The following code is from there:

OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.

Thanks for you reply.I should say that the issue is probably specific to the way "sequence<smth>" is handled in JavaScript.There are no issues with other PropertyValues passed to doc.storeToURL() method. The issue is specific to "FilterData" property in that array - the property value should be a sequence of PropertyValue (in Java examples it is an array of PropertyValue), but trying to use Array for "filter_props" appears to trigger an exception when it is being translated to native interface.

//get the document object from the scripting contextoDoc = XSCRIPTCONTEXT.getDocument();//get the XTextDocument interfacexTextDoc = UnoRuntime.queryInterface(XTextDocument,oDoc);//get the XModel interface from the documentxModel = UnoRuntime.queryInterface(XModel,oDoc);//get the XStorable interface used to save the documentxStorable = UnoRuntime.queryInterface(XStorable,xTextDoc);

//get the document object from the scripting contextoDoc = XSCRIPTCONTEXT.getDocument();//get the XTextDocument interfacexTextDoc = UnoRuntime.queryInterface(XTextDocument,oDoc);//get the XModel interface from the documentxModel = UnoRuntime.queryInterface(XModel,oDoc);//get the XStorable interface used to save the documentxStorable = UnoRuntime.queryInterface(XStorable,xTextDoc);

//get the document object from the scripting contextoDoc = XSCRIPTCONTEXT.getDocument();//get the XTextDocument interfacexTextDoc = UnoRuntime.queryInterface(XTextDocument,oDoc);//get the XModel interface from the documentxModel = UnoRuntime.queryInterface(XModel,oDoc);//get the XStorable interface used to save the documentxStorable = UnoRuntime.queryInterface(XStorable,xTextDoc);