I am using Erel´s example for opening a word docx file (in his case a excel file)
and replacing some text .
My problem is that I dont know how to read the contents of textbox objects.
(see screenshot)
Code I use looks like this ...
and replacing some text .
My problem is that I dont know how to read the contents of textbox objects.
(see screenshot)
Code I use looks like this ...
B4X:
Dim paragraphs As List = doc.RunMethod("getParagraphs", Null)
For Each p As JavaObject In paragraphs
Dim runs As List = p.RunMethod("getRuns", Null)
If runs.IsInitialized Then
For Each r As JavaObject In runs
Dim text As String = r.RunMethod("getText", Array(0))
....