poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Andrews <pythonadd...@yahoo.com>
Subject Re: trying to use POI with a DOT file
Date Mon, 05 Mar 2007 17:36:56 GMT

I have created a .zip archive and uploaded it to RapidShare a file sharing site. You can recover
it by following this link;


A screen will open that asks whether you want to use the Premium or Free service, choose Free
and you should be able successfully to download the archive after a short wait.

Once you get the archive, unzip it into a folder somewhere and have a look at the ReadMe.rtf
file. It explains what the contents are and should get you started with OLE/COM automation.
Currently, the code only opens a file, inserts some text at a bookmark and then saves the
file under a different name. If I have the time tonight, I will add the ability to insert
tables - the VBA seems quite straightforward. Anyway, have a play with the code and see if
you think it offers a way forward; it is quite easy to add features if you require them later.
Remember that it is ONLY demonstration code and so you should not try to run it in a production
environment. Furthermore, because JNI is at the heart of everything it will only work on a
Windows platform and cannot be safely run on a network.

Christian Bongiorno <cbongiorno@electrosoft-inc.com> wrote: That would rock!

Anything would be better than working with almost 1000 lines of 
hardcoded XML!


Anthony Andrews wrote:
> Have had the chance to look around on my PC this morning and found a piece of test code
I wrote ages ago that uses SWT to open a Word document template (.dot file), insert some text
at various bookmarks, print the document and then save it away again.
> If you want me to do so Christian, I am quite happy to post the code for you to have
a look at, just let me know.

To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message