TIWAdvWebGridExcelIO works only one time

Hallo,

 
in my application TIWAdvWebGridExcelIO works only first time correct. Even if i close excel and then do it again
excel comes up with a message, something that the format is not correct. Then i have to restart the application and
it works again for one time.
 
This is all i do:
 TIWAdvWebGridExcelIO1.XLSExport('TMSGridExport.xls', WebApplication);
 
When i compile the IW11FeaturesDemo the same happens on excel io.
 
I am working with Excel2007. What can i do wrong.
 
Thanks
 
 

Can it be this is related to:

http://www.monien.net/blog/index.php/2006/11/how-to-prevent-locked-forms-after-sending-a-file-with-intraweb/

Thanks, that article was a big help. Setting LockOnSubmit=false fixed the problem for the moment.

The javascript solution did not work. But maybe i did something wrong, normaly i don't work with client scripting.
If i have some more time i will try again.