Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oleboundcontrol Not Releasing WINWORD.EXE process
Message
 
À
24/09/2002 17:22:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00704007
Message ID:
00704108
Vues:
23
>Has anyone figured out how to close the WINWORD.EXE process that an oldboundcontrol object starts when it is assigned a control source?
>
>Here is the code I'm using:
>
> oform = CREATEOBJECT('form')
> oform.ADDOBJECT('owordobject','oleboundcontrol')
> oform.owordobject.CONTROLSOURCE = 'c_parent.contract'
> oform.owordobject.SAVEAS(lcdir+lcfilename)
> oform.owordobject.CONTROLSOURCE = ''
> oform.REMOVEOBJECT('owordobject')
> oform = ''
> RELEASE oform
>
>REMOVOBJECT() and RELEASE oform do not remove the WINWORD.EXE process from the task manager. I thought maybe setting the CONTROLSOURCE to blank would do it but that didn't work either.
>
>HELP!!!!
>
>Trish

Trish,


WITH oForm.oWordObject
.ActiveDocument.Close(0)
.oWordObject.Quit()
.oWordObject = .NULL.
ENDWITH

José
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform