Hi Knut,
Is there any way to find the name of the file generated from
MailMerge.execute( args() )?
I don't like guessing :)
guessing can be fun at times ;-)
I think for your problem the
com.sun.star.frame.GlobalEventBroadcaster comes in handy. It can be
created at the XMultiServiceFactory you gained after connecting the
office or if you are in Basic with the help of the method
createUnoService("com.sun.star.frame.GlobalEventBroadcaster" )
This broadcaster has the method "addEventListener", where you can add
a com.sun.star.document.XEventListener
The call-back function notifyEvent of this listener has the argument
Event, which is an com.sun.star.document.EventObject
If it's EventName is "OnUnload" you can ask the Event for it's Source
and call the method getURL() at it.
With the last step you should have the URL of the document.
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]