|
|
|
|
|
- Handling a Table programmatically
<Document variable>.InsertTable (Función)
MonDocument is Document <- TT_Tableau
MonDocument.InsèreTableau(1, 3, 3)
MonDocument is Document <- TT_Tableau
MonDocument.InsèreTableau(TT_Tableau.Curseur, 3, 2)
Sintaxis
Insertar una tabla en un documento Word Ocultar los detalles
<Result> = <Document>.InsertTable(<Position> [, <Number of columns> [, <Number of rows>]])
<Result>: Variable de tipo DocFragment docFragment variable with the inserted fragment. <Document>: Variable de tipo Document Name of the Document variable to be used. <Position>: Integro Position where the table will be inserted. This position is expressed in number of characters. <Number of columns>: Entero opcional Number of columns in the table. This parameters corresponds to 1 by default. <Number of rows>: Entero opcional Number of rows in the table. This parameters corresponds to 1 by default. Observaciones Handling a Table programmatically A table in a Word Processing document can be handled by the WLanguage functions for managing arrays. For example:
MonDocument is Document <- TT_ExempleTT
MonDocument.InsèreTableau(1, 3, 3)
f is docFragment(TT_ExempleTT.Valeur, TT_ExempleTT.Curseur, 0)
let para <- f.Paragraph[1]
IF para.Table = Null THEN
RETURN
END
doc is Document <- TT_ExempleTT.Valeur
nIndice is int = Add(para.Tableau.Lignes)
para.Tableau.Cellules[2,2].Contenu.Texte = "Je suis dans la cellule 2,2"
Delete(para.Tableau.Lignes, 3)
Delete(para.Tableau.Colonnes, 3)
Delete(doc.Paragraph, para.ParagraphIndex)
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|