Ok, to be honest: the headline doesn\'t tell the whole truth. I am using a custom control with several buttons (save, close, edit etc.) and a button that executes a POI acti
I believe the issue is you're generating the word document from the button on the same page.
Do the generation from an XAgent. Have the button call the XPage containing the XAgent and you should be fine.