The Free and Open Productivity Suite
Follow us on Twitter: @ApacheOO

Developer Guide for NetBeans

This document describes how to set up NetBeans for Office Scripting in Java and how to write a simple script using NetBeans. You can download the NetBeans IDE from the NetBeans download page.

Contents:

Pre-requisites

Now start NetBeans and mount the directory you created using the File/Mount Filesystem menu option. You also need to mount all of the jar files in the <Office installation>/program/classes directory in order to access the Office API from your scripts.

Top

Creating a Parcel Recipe

Office scripts are delivered in Script Parcels. Like Office documents they are zip files. Script Parcels have the .sxp extension. Script Parcels are generated from Parcel Recipes where all of the files that are necessary to create the parcel are put together. To create a new Parcel Recipe: This will create a new directory with the name you chose. In this directory you will find a Contents directory where all of your java source files will be placed. An empty stub file Empty.java will have been placed in the Contents directory and can be used as a starting point for your script.

Top

Actions available for Parcel Recipe

If the user right clicks on the parcel directory they should be able to use the following actions:

Top

Actions available for Script Parcels

Script Parcels supports only one action:

Note: If you deploy a Script Parcel to an OpenOffice.org installation you need to use the Tools/Refresh User Scripts (Java) menu item for the new script to appear in the Assign Script dialog.

Note: You can also deploy to Office documents within NetBeans using drag and drop or cut and paste.

Top

Actions available for Office Documents

Office Documents are also recognised by NetBeans. Any parcels contained in the document will be displayed as nodes of the Office document. Deleting one of these nodes will remove the Script Parcel from the document. Office documents support the standard Delete, Cut and Copy actions and the following custom actions:

Top

Debugging Office scripts in NetBeans

Top

Troubleshooting

Top


Last Modified: Fri Nov 29 14:19:53 GMT 2002

Apache Software Foundation

Copyright & License | Privacy | Website Feedback | Contact Us | Donate | Thanks

Apache, the Apache feather logo, and OpenOffice are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.