B4J Library XLUtils / jPOI 5 - Read and write MS Excel workbooks

Status
Not open for further replies.

Erel

B4X founder
Staff member
Licensed User
Longtime User
- V2.09 - New bidi attribute for paragraph tags.

B4X:
Dim doc As WordDocument = wd.CreateDocument
doc.Append($"[p bidi=true alignment=START]
${WrapLineWithRTL("דוגמא לטקסט (קצר) עם עברית")} and English.
${WrapLineWithRTL("שורה שניה!")}   
[/p]"$)

Private Sub WrapLineWithRTL(line As String) As String
    Return $"${Chr(0x202E)}${line}${Chr(0x202C)}"$
End Sub



Not trivial to combine text with different directions as you need to mark each section correctly. If only RTL then simply wrap the whole text with WrapLineWithRTL.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…