

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
13 messages in org.openoffice.fr.progRe: [prog] Probleme pour creer un OLE...| From | Sent On | Attachments |
|---|---|---|
| Alpha Beta | Nov 14, 2005 12:34 am | |
| Bernard Marcelly | Nov 14, 2005 6:23 am | |
| Alpha Beta | Nov 14, 2005 7:51 am | |
| Bernard Marcelly | Nov 14, 2005 9:50 am | |
| Alpha Beta | Nov 15, 2005 4:16 am | |
| Bernard Marcelly | Nov 15, 2005 6:02 am | |
| Guillaume PAPIN | Nov 15, 2005 6:17 am | |
| Bernard Marcelly | Nov 15, 2005 7:10 am | |
| Guillaume PAPIN | Nov 15, 2005 8:28 am | |
| Bernard Marcelly | Nov 16, 2005 1:07 am | |
| Guillaume PAPIN | Nov 16, 2005 1:21 am | |
| Didier Dorange-Pattoret | Nov 23, 2005 10:28 am | |
| Didier Dorange-Pattoret | Nov 26, 2005 12:02 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [prog] Probleme pour creer un OLE2Shape | Actions... |
|---|---|---|
| From: | Didier Dorange-Pattoret (ddor...@free.fr) | |
| Date: | Nov 26, 2005 12:02:21 am | |
| List: | org.openoffice.fr.prog | |
Bonjour,
Sous OOo2.0 Pour contourner le probleme évoqué ci-dessous, j'essaie d'insérer un EmbeddedObject avec le code ci-dessous:
Sub Main25 obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject") obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997" obj.AnchorType = com.sun.star.text.TextContentAnchorType.AT_PAGE CurseurVisible = ThisComponent.CurrentController.ViewCursor Montexte = Thiscomponent.Text MonTexte.InsertTextContent(CurseurVisible,obj,false) TheFormule = obj.Model TheFormule.Formula = "1 over x" Xray obj End Sub
Ce code fonctionne bien, mais lorque je veux changer la position de la formule j'obtiens une erreur avec comme message: "impossible de changer la position de l'objet avec la methode setposition". Xray annonce que cette methode ne fonctionne pas.
Comment faire pour changer la position de l'objet inséré ?
Merci d'avance.
Didier Dorange-Pattoret a écrit :
Bonsoir,
Dans le même ordre d'idée, le code suivant passait sous OOo1.1.4 et provoque un plantage avec OOo2.0
Sub Essai28 oDocument =Thiscomponent oVecteur = oDocument.createInstance("com.sun.star.drawing.OLE2Shape") End Sub
Pour info, j'utilise un OLE2Shape dont le CSLID est celui des formules. Cela permet d'insérer dans la drawpage du document writer les vecteurs i et j du repère. Ensuite je groupe avec la courbe tracée et les axes.
Ce qui ne peut être fait si on insère une formule directement dans l'objet Text du document.
Mais si vous avez une autre idée, je suis preneur.
Peut-être un autre type de shape?
Merci d'avance.
-- Didier Dorange-Pattoret
http://www.dmaths.org http://sesamath.net
S'inscrire à la liste de diffusion de dmaths: user...@dmaths.org
Ses archives: http://listes.dmaths.org/wws/arc/users
Les Forums: http://www.dmaths.org/modules.php?name=Forums
Mailing List in english:
http://www.dmaths.org/modules.php?name=Content&pa=showpage&pid=9
Le livre de référence pour OpenOffice.org :
http://www.amazon.fr/exec/obidos/ASIN/2212114389/dmaths-21
Programmation OpenOffice.org :
http://www.amazon.fr/exec/obidos/ASIN/2212114397/dmaths-21







