

![]() | 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: |
5 messages in org.openoffice.fr.progRE: [prog] API OpenOffice 2.0.1 conve...| From | Sent On | Attachments |
|---|---|---|
| Xavier XGE. GUILLEMINE | Jun 15, 2006 5:20 am | |
| Pascal Robert | Jun 15, 2006 7:33 am | |
| Xavier XGE. GUILLEMINE | Jun 16, 2006 4:47 am | |
| Xavier XGE. GUILLEMINE | Jun 20, 2006 1:47 am | |
| Xavier XGE. GUILLEMINE | Jun 29, 2006 2:28 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] API OpenOffice 2.0.1 conversion document word avec champs de fusions vers odt | Actions... |
|---|---|---|
| From: | Xavier XGE. GUILLEMINE (Xavi...@fr.adp.com) | |
| Date: | Jun 20, 2006 1:47:13 am | |
| List: | org.openoffice.fr.prog | |
Après test je vois que j'ai un soucis avec l'API
Avec une version 1.5 quand je transformer un document doc en sxw,
J'obtient un content.xml possédant mes champs de fusions, mais sans
référencement de ma base Ooo
Exemple :
<text:span text:style-name="T2">
<text:database-display text:table-name="" text:table-type="table"
text:column-name="SAD_SADESO_DS"><SAD_SADESO_DS></text:database-display>
</text:span>
Après je relie les champs de fusion avec la nouvelle soucre de données
Par contre avec la version 2.0.1 j'obtiens un odt avec un content.xml ne
possédant plus mes informations sur les champs de fusions, donc je ne peut
réaliser la relation champ de fusions base OOo
GUILLEMINE Xavier Prestataire GRENAT ADPGSI - MAINTENANCE Z2X Tél 02.51.13.85.32
-----Message d'origine-----
De : Pascal Robert [mailto:prob...@os.ca]
Envoyé : jeudi 15 juin 2006 16:34
À : pr...@fr.openoffice.org
Objet : Re: [prog] API OpenOffice 2.0.1 conversion document word avec champs de
fusions vers odt
Le 06-06-15, à 08:20, Xavier XGE. GUILLEMINE a écrit :
Bonjour
Je rencontre des soucis avec l'API openOffice 2.0.1
Je souhaite transformer un document word contenant des champs de fusions en document office .odt via l'API
Premièrement, passe à OOo 2.02, la fusion ne fonctionne pas très bien sur 2.01.
Pour ton problème, il est bien simple, les champs de fusion venant de Word sont
bien vu, mais OOo ne peut les utiliser et les relier à la source de données que
Word utilisait. Pour que le tout fonctionne, tu dois :
- convertir ton document Word en document OOo
- créer une nouvelle source de données dans OOo Base
- relier les champs de fusion avec la nouvelle source de données
- exécuter la fusion
C'est justement le genre d'opération que j'ai dû faire pour éliminer une
solution Word (qui utilisait COM et la JVM de Microsoft, beurk).
je réalise le code suivant :
/** * Transform the documentUrl (Normally a .doc, perhaps any document support by * Open Office)into a odt document * * @param xMSF * @param documentURL as <code>/path/template.doc</code> * @return */
public void transform(XMultiServiceFactory xMSF, String documentURL)throws OOException { if ( logger.isDebugEnabled() ){ logger.debug(new StringBuffer(128).append("Transform to .odt : ").append(documentURL).toString()); }
// Transformation into .odt XTextDocument docWord = OOFactory.createXTextDocument(xMSF, documentURL); // Saugegarde du document String nomDocSortie = new StringBuffer(128).append(documentURL).append(OOFileManager.getDocExten s ion()).toString(); OORegistration reg = new OORegistration(); reg.storeDocument(docWord, documentURL, "StarOffice XML (Writer)", nomDocSortie); if ( logger.isDebugEnabled() ){ logger.debug(new StringBuffer(128).append("End transformation to .odt : ").append(documentURL).toString()); } }
-- Pascal Robert Spécialiste en informatique/IT Specialist OS communications informatiques inc. +1 450 676-1238 x28 http://www.os.ca







