I can only agree with Laurent, the second way by locking the controllers would be the best option, I think.
That way you can be very sure that your macro gets executed from beginning to end without any disturbance.


Best Regards
Christian Junker

Laurent Godard wrote:

Hi christian,

Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished


i see 2 ways :
- declaring a listener on the document closing event. Don't sure it suites totally your nee
- lock OOo until your script has finished
ThisComponent.lockControllers
- save
- modify
ThisComponent.unlockController
Then the user won't be able to close the document has the GUI is frozen for user interactions


HTH

laurent


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to