Word_Application, strange bahaviour when invisible

forum.advanced.programming (1998-2005)
Juergen Graefe

Word_Application, strange bahaviour when invisible

Post by Juergen Graefe » 08 Dec 2004, 16:21

 Posted by:  Juergen Graefe 

Hi,

I use CTD 3.1 and ActiveX/Word 2000 to manipulate some Word-Documents.
To speedc things up and to avoid flickering I hide Word:

/---
| Call wordApp.Create ()
| Call wordApp.PropSetVisible( FALSE )
| Call wordApp.PropSetScreenUpdating( FALSE )
\---

Things works fine, but when I close the document and application with:

/---
| Call vSave.SetBoolean( FALSE )
| Call vOrgFormat.MakeOptional( )
| Call vRoute.MakeOptional( )
| Call wordDoc.Close( vSave, vOrgFormat, vRoute )
| Call wordDoc.Detach( )
| Call wordDocuments.Detach( )
| Call wordApp.Quit( vSave, vOrgFormat, vRoute )
| Call wordApp.Release( )
| Call wordApp.Detach( )
\---

there is still an process WINWORD.EXE open in the tastmanager which even
demands all cpu-time. When I use PropSetVisible ( TRUE ) above, this
don't happen.

I think I have forgotton something at the end of the example.

Gruß,
Jürgen

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests