Salut,
J'ai créer un template de document word et je l'ai enregistré en xml, je manipule ensuite ce document en java pour y remplacer des variables.
Jusque là tout va bien, j'ai dans ce document des cases à cocher et j'aimerais les checker si une valeur est setté dans le monde java.
J'ai ouvert le template xml à l'aide d'un éditeur de texte et j ai le code suivant
sachant que ma case à cocher porte le nom de Kontrollkästchen9 j ai donc conclu que cet élément se trouvant dans le bookmark <aml:annotation aml:id="5" w:type="Word.Bookmark.Start" w:name="Kontrollkästchen9"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 <aml:annotation aml:id="5" w:type="Word.Bookmark.Start" w:name="Kontrollkästchen9"/> <w:tc><w:tcPr><w:tcW w:w="284" w:type="dxa"/></w:tcPr> <w:p wsp:rsidR="001727F0" wsp:rsidRDefault="009A161C" wsp:rsidP="007363EA"> <w:pPr><w:widowControl/><w:spacing w:line="201" w:line-rule="exact"/> <w:ind w:left="-70"/><w:rPr><w:sz w:val="16"/></w:rPr></w:pPr> <w:r><w:rPr><w:sz w:val="16"/></w:rPr> <w:fldChar w:fldCharType="begin"><w:fldData>/////2UAAAAUABEASwBvAG4AdAByAG8AbABsAGsA5ABzAHQAYwBoAGUAbgA5AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</w:fldData> </w:fldChar> </w:r> <w:r> <w:rPr> <w:sz w:val="16"/> </w:rPr><w:instrText> FORMCHECKBOX </w:instrText> </w:r><w:r wsp:rsidR="00FC4DAF" wsp:rsidRPr="009A161C"> <w:rPr><w:sz w:val="16"/></w:rPr></w:r><w:r><w:rPr><w:sz w:val="16"/></w:rPr> <w:fldChar w:fldCharType="end"/> </w:r><aml:annotation aml:id="5" w:type="Word.Bookmark.End"/></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1984" w:type="dxa"/> <w:gridSpan w:val="2"/> </w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001727F0" wsp:rsidP="00B83725"> <w:pPr><w:widowControl/> <w:spacing w:line="201" w:line-rule="exact"/> <w:ind w:left="-70"/> <w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="10"/> <w:lang w:val="FR"/></w:rPr><w:t>Permis d'implantation/</w:t></w:r><w:r><w:rPr> <w:i/><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Standortbewilligung</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="284" w:type="dxa"/> <w:gridSpan w:val="2"/> </w:tcPr> <w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001F66AB" wsp:rsidP="007363EA"><w:pPr><w:widowControl/> <w:spacing w:line="201" w:line-rule="exact"/><w:ind w:left="-70"/><w:rPr><w:sz w:val="16"/></w:rPr></w:pPr> <w:r><w:rPr><w:sz w:val="16"/></w:rPr><w:fldChar w:fldCharType="begin"> <w:fldData>/////2UAAAAUABEASwBvAG4AdAByAG8AbABsAGsA5ABzAHQAYwBoAGUAbgA5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</w:fldData> </w:fldChar></w:r><w:r wsp:rsidR="001727F0"><w:rPr><w:sz w:val="16"/> </w:rPr><w:instrText> FORMCHECKBOX </w:instrText></w:r><w:r wsp:rsidR="00FC4DAF" wsp:rsidRPr="001F66AB"><w:rPr><w:sz w:val="16"/></w:rPr></w:r> <w:r><w:rPr><w:sz w:val="16"/></w:rPr><w:fldChar w:fldCharType="end"/></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="2693" w:type="dxa"/> <w:gridSpan w:val="3"/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001727F0"><w:pPr><w:widowControl/> <w:spacing w:line="201" w:line-rule="exact"/><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr> </w:pPr><w:r><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Permis de démolition/</w:t></w:r><w:r> <w:rPr><w:i/><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Abbruchbewilligung</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="283" w:type="dxa"/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001F66AB" wsp:rsidP="007363EA"><w:pPr><w:widowControl/><w:spacing w:line="201" w:line-rule="exact"/><w:ind w:left="-70"/><w:rPr><w:sz w:val="16"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="16"/></w:rPr><w:fldChar w:fldCharType="begin"><w:fldData>/////2UAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA </w:fldData></w:fldChar></w:r><w:r wsp:rsidR="001727F0"><w:rPr><w:sz w:val="16"/></w:rPr><w:instrText> FORMCHECKBOX </w:instrText></w:r><w:r wsp:rsidR="00FC4DAF" wsp:rsidRPr="001F66AB"><w:rPr><w:sz w:val="16"/></w:rPr></w:r><w:r><w:rPr><w:sz w:val="16"/></w:rPr><w:fldChar w:fldCharType="end"/></w:r></w:p></w:tc></w:tr><w:tr wsp:rsidR="001727F0"><w:tc><w:tcPr><w:tcW w:w="1630" w:type="dxa"/><w:vmerge/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001727F0"><w:pPr><w:widowControl/><w:tabs><w:tab w:val="left" w:pos="284"/></w:tabs><w:spacing w:line="201" w:line-rule="exact"/><w:rPr><w:sz w:val="12"/><w:lang w:val="FR"/></w:rPr></w:pPr></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1842" w:type="dxa"/><w:gridSpan w:val="2"/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001727F0"><w:pPr><w:widowControl/><w:spacing w:line="201" w:line-rule="exact"/><w:ind w:left="-70"/><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Genre de construction:/</w:t></w:r><w:r><w:rPr><w:i/><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Art des Baues:</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="1843" w:type="dxa"/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001727F0"><w:pPr><w:widowControl/><w:spacing w:line="201" w:line-rule="exact"/><w:ind w:left="-27"/><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Nouvelle construction/</w:t></w:r><w:r><w:rPr><w:i/><w:sz w:val="10"/><w:lang w:val="FR"/></w:rPr><w:t>Neubau</w:t></w:r></w:p></w:tc><w:tc><w:tcPr><w:tcW w:w="284" w:type="dxa"/></w:tcPr><w:p wsp:rsidR="001727F0" wsp:rsidRDefault="001F66AB" wsp:rsidP="007363EA"><w:pPr><w:widowControl/><w:spacing w:line="201" w:line-rule="exact"/><w:ind w:left="-70"/><w:rPr><w:sz w:val="16"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="16"/></w:rPr><w:fldChar w:fldCharType="begin"><w:fldData>/////2UAAAAUABEASwBvAG4AdAByAG8AbABsAGsA5ABzAHQAYwBoAGUAbgA5AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA==
mais je n arrive pas à trouvé ou est définis ce checkbox et ou peut on setter sa valeur
j ai pensé que c étaitmais cet élément ne possède pas d'attribut
Code : Sélectionner tout - Visualiser dans une fenêtre à part <w:instrText> FORMCHECKBOX </w:instrText>
donc je ne sais pas trop ou regarder
d'avance merci
Partager