The modelend page of the Sample2 application uses an ActiveX control to open the result document in an instance of Word. To do so the ActiveX control looks for an existing instance and if none is found it starts Word. The problem is that Word viewed in a browser counts as an instance but cannot be used by the ActiveX control.
The remedy is to open word before anything else and leave it open. It is important that Word is the first program started (or at least that Word is started before any application that uses Word in any way). When the ActiveX looks for a Word instance it will find this first opened ordinary Word instance, which it can work with.