Code : Tout sélectionner
oDB = thisDatabaseDocument
oCnx = oDB.currentcontroller
If Not oCnx.isConnected() Then oCnx.Connect
oForms = oDB.FormDocuments
oForm = oForms.getByName("Formulaire") 'ici le nom du document formulaire
oPage = oForm.Component.DrawPage.Forms(0) 'ici le contrôle formulaire dans le document
oCtrl = oPage.getByName("Contrôle") 'ici le nom du contrôle