PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Word Processing - Set Custom Tabulator
Word Processing - Set Custom Tabulator
Débuté par meikl, 09 oct. 2017 11:31 - 1 réponse
Membre enregistré
118 messages
Posté le 09 octobre 2017 - 11:31
Hi all

using this code in a button Click Process

MyDoc is Document = WP_NoName1
absatz is docParagraphe = MyDoc.Paragraph[1]

Tabul is docTabulation
Tabul..Position = 30

Add(absatz..PageLayout..CustomTabulation,Tabul)


just like as in help:

MyDoc is Document = MyDocControl
// Retrieve the first paragraph
Parag is docParagraphe = MyDoc.Paragraph[1]
// Tabulation at 3 cm
Tabul is docTabulation
Tabul..Position = 30
// Add the tabulation to the custom tabulations of the paragraph
Add(Parag..PageLayout..CustomTabulation, Tabul)


i got following exception:

Error at line 7 of Click BTN_Setzen process.
Add function called.
This function is not available for an element of 'DocMiseEnPage.TabulationPerso' type.

----- Technical Information -----

Project : ProjektIcon

WL call:
Process of 'Click BTN_Setzen' (WIN_WP.BTN_Setzen), line 7, thread 0
'Add' function, syntax 1

What happened?
This function is not available for an element of 'DocMiseEnPage.TabulationPerso' type.

Error code: 1162
Level: fatal error

Dump of the error of 'wd220vm.dll' module (22.0.316.0).
Identifier of detailed information (.err): 1162
Debugging information:
Fonction (0,191)
Additional Information:
EIT_PILEWL :
Click BTN_Setzen (WIN_WP.BTN_Setzen), line 7
EIT_DATEHEURE : 09/10/2017 11:31:41
EIT_TYPE_WDFILE : <2>
EIT_IDCODE : <18>


Whats going wrong?

Regards
Meikl ;)
Membre enregistré
118 messages
Posté le 09 octobre 2017 - 11:32
Don't know why this post comes twice ...