Hi Steffen, On Wed, Feb 14, 2007 at 07:14:37PM +0100, Steffen Grund wrote:
thank you for having a look! > perhaps I am getting this wrong, because you shortened your code to post > it here, but: you add a listener to a MailMerge object and then throw > the object away? Hmm - I don't mean to throw it away. I'm a novice, and I don't see where I throw it away. If you say it is thrown away, then this is very likely my problem, although with a terminate listener that way works. > Second, exactly what kind of event do you want to be notified of? ? I don't have a choice to choose between events, do I? There only is that one listener with only that single notify-method. But here's what I intend to do: I want to write an extension for issue http://www.openoffice.org/issues/show_bug.cgi?id=5948 to insert PostNet Barcodes for envelopes. A while back I hacked something together that used autoTexts made of drawing shapes to insert the barcode. That was a hackish method that is rather slow. I now rewrote that thing in java and use barcode4j to generate the barcode in png format and insert the image into the document. This is much faster than the autotext approach. But to be useful, this needs to be hooked-up to the mailmerge, otherwise you would have to manually print each envelope. Wo what I hope for is a way to get notified with "Hey, this doc is about to get printed/saved: Do something with it", and then my extensions gets the chance to parse the address and insert the barcode and proceed to the next doc, or alternatively: Here's all the merged docs in one single document: Do something with it". If the MailMerge-Listener is not the way to go here, what else would you suggest? ciao Christian -- NP: Linkin Park - Hit The Floor --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
