Hi,
I need some help,
I looked at the forum and find the apache poi lib and the work example works fine. (Creating a docx with some lines).
I need to open an existing Word document , and replace some old text with new text . After open word or related program and the user will print the document manually.
I an other language I work with ole object and bookmarks :
How I can do this in B4J . If not possible, only replacing a text would help, because every Bookmark has a text in the document.
Thanks.
I need some help,
I looked at the forum and find the apache poi lib and the work example works fine. (Creating a docx with some lines).
I need to open an existing Word document , and replace some old text with new text . After open word or related program and the user will print the document manually.
I an other language I work with ole object and bookmarks :
B4X:
ole_1.connecttoobject("",'word.application')
ole_1.Application.documents.open("test.docx",false,true)
ls_name="M_ANREDE"
ls_content_new ="new Text"
if ole_1.ActiveDocument.Bookmarks.Exists(ls_name) then
ole_1.selection.goto(true,0,0,ls_name)
ole_1.selection.typetext(ls_content_new)
end if
How I can do this in B4J . If not possible, only replacing a text would help, because every Bookmark has a text in the document.
Thanks.