i didn't understand hoe i can use MergeFieldEventHandler to solve my problem
please can you give me a short example
for now i run this code befor i save the result document (using this i still having a problem with text in the tables)
Dim ArabicLetters() As String = {"ا", "ب", "ت", "ث", "ج", "ح", "خ", "د", "ذ", "ر", "ز", "س", "ش", "ص", "ض", "ف", "ق", "ك", "ل", "م", "ن", "ه", "و", "ي", "ة", "ء", "ئ", "أ"}
For Sectionindex As Integer = 0 To Me._MyBooklet.Sections.Count - 1
For Childsindex As Integer = 0 To Me._MyBooklet.Sections(Sectionindex).Body.ChildNodes.Count - 1
If Me._MyBooklet.Sections(Sectionindex).Body.ChildNodes(Childsindex) IsNot Nothing Then
Select Case Me._MyBooklet.Sections(Sectionindex).Body.ChildNodes(Childsindex).NodeType
Case NodeType.Paragraph
Dim iPara As Paragraph = CType(Me._MyBooklet.Sections(Sectionindex).Body.ChildNodes(Childsindex), Paragraph)
For ParagraphChildsindex As Integer = 0 To iPara.Runs.Count - 1
For ArabicLettersIndex As Integer = 0 To ArabicLetters.Length - 1
If iPara.Runs(ParagraphChildsindex).Text.Trim.Contains(ArabicLetters(ArabicLettersIndex)) Then
iPara.Runs(ParagraphChildsindex).Font.Bidi = True
Exit For
End If
Next
Next
End Select
End If
Next
Next
thanks in advance