Acc�der � une checkbox via l'API d'OpenOffice
Bonjour,
J'ai trouv� sur le site quelques exemples de pilotage d'OpenOffice via C++ Builder.
Je cherche � contr�ler une chechbox ajout�e sur le document principal mais je ne sais pas comment y acc�der. Me basant sur des exemples dans d'autres langages trouv�s sur le NET, j'ai essay�:
Code:
1 2 3 4 5 6
| ...
vOOoDocument = vOOoDesktop.OleFunction("LoadComponentFromURL" , ... );
vOOoDraw = vOOoDraw = vOOoDocument.OleFunction("getDrawPage");
vOOoForms = vOOoDraw.OleFunction("getForms");
vOOoMainForm = vOOoForms.OleFunction("getByName","Standard");
vOOoCb = vOOoForm.OleFunction("getByName","MyCheckBox"); // -> génère une exception: "Nom inconnu" |
mais cela ne fonctionne pas. Quelqu'un a t'il la solution ?
Merci