Bonjour tout le monde
j'ai réalisé un code c# qui remplace un mot par un autre mot, dans un doucement Word
ce programme marche bien quand je recherche un mot sans caractères spéciaux comme EXPERT
mais je recherche un mot comme [EXPERT], le programme ne trouve rien
merci pour votre aide


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
 
           object matchCase = true;
            object matchWholeWord = true;
            object matchSoundsLike = false;
            object matchAllWordForms = false;
            object forward = true;
            object format = false;
            object matchKashida = false;
            object matchAlefHamza = false;
            object matchDiacritics = false;
            object matchControl = false;
            object read_only = false;
            object visible = true;
            object replace = 2;
            object wrap = 1;
 
 
 
            WordApp.Selection.Find.Execute(ref findText, ref matchCase, ref matchWholeWord, ref matchWholeWord,
            ref matchSoundsLike, ref matchAllWordForms, ref forward, ref wrap, ref format,
            ref replaceWithText, ref replace, ref matchKashida, ref matchDiacritics, ref matchAlefHamza, ref matchControl);