openoffice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <arie...@apache.org>
Subject Re: calc BeanShell script save gives "error saving script" window.
Date Sat, 02 Mar 2013 22:48:05 GMT
Hi Larry,

On Sat, Mar 02, 2013 at 03:46:42PM -0600, Larry Evans wrote:
> The script is attached.
> 
> The OpenOffice version is(from the about button):
> 
> OpenOffice.org 3.2.0
> OOO320m12 (Build:9483)

This is too old.

> The OS is:
> 
> Linux evansl-desktop 2.6.32-41-generic #90-Ubuntu SMP Tue May 22
> 11:29:51 UTC 2012 x86_64 GNU/Linux
> 
> The steps:
> 
>   1) Open simple_script1.ods
>   2) Tools>Macros>Organize Macros>BeanShell>Standard>NumberFive.bsh
>   3) Enter the attached into the Edit window
>   4) Press Save button at bottom of Edit window.
> 
> There then appears an Error window with:
> 
>       Error saving script:
>       com.sun.star.ucb.iInteractiveAugmentedIOException: Got no data
>       stream!

I couldn't reproduce this, because I don't have simple_script1.ods, but
with 3.4.1 I was able to create a script, save it, assign it to an
event, etc.

> What should I do to Save this script.

May be try with a newer version (you can try it without installing it).

> Also, eventually, I'll want to use this script in a formula.  I'd like
> guidance on how to do that.

Do you want to use it as a Function, just like you can do it with Basic
macros, or to manipule the document?

We have a dedicated mailing list for programing, scripting, API,
extension, etc.: api@openoffice.apache.org


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message