I just love Open Office! It’s free, all data is stored as a zip’d XML, it can be automated using COM (and various other API’s), it can produce quality PDF’s and most importantly, it’s not a Microsoft product. What a fantastic program and an excellent opportunity for integration with Notes.

This database is an example of how to integrate Open Office (OoO) with Lotus Notes using COM automation. It exports information from an Invoice document in a Notes database into a OoO Writer document. The Writer document is then formatted sincely into a printable invoice, then both a completed PDF and OoO version is re-attached to the Invoice document in Notes - all within a few seconds!

I use a variation of this system in my business for sending out invoices to clients and it works really well. Saves me heaps of time mucking around formatting documents etc.

Download the Demonstration
Download the Open Office & Notes Integration demonstration database (200kb)

How To Use The Demonstration Database
In the Invoice by Status view, use the New Invoice button to create a new Invoice. Complete all fields on the Invoice Form (yes, I know there’s a lot, sorry). Create a number of Invoice Detail documents (optional - these are used to breakdown large costs into smaller identiable items). Click the Generate Invoice button to execute the code which will then:

  1. Launch Open Office
  2. Export the Notes data
  3. Generate a OoO file and a PDF file, and then
  4. Attach the Resultant files back to the original Invoice document.

Tip: To make things easier for this demonstration, inheritance has been enabled on the Invoice form, so if you select the existing Invoice document and click New Invoice you’ll get a pre-populated Invoice.

The ooo-template view contains a Open Office document used as a template for the Invoice. To change the Invoice layout, simply change this template.

Other Useful Resources:

  1. It obviously requires an installation of Open Office, download from http://www.openoffice.org
  2. http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html
  3. http://www.ooomacros.org
  4. http://www.oooforum.org

Questions?
If you have any questions about this demonstration, then please contact us.