B4J Question Replace text in Word placeholders and show the document

Discussion in 'B4J Questions' started by JOTHA, Jul 14, 2019.

  1. JOTHA

    JOTHA Well-Known Member Licensed User

    Hello community,

    i use some code (https://www.b4x.com/android/forum/threads/open-word-and-replace-text.104733/#post-672818) to generate a map (key/value) which is opening an existing WORD-document and replacing text at placeholders. This works: the docx-output-file is generated but it shows only for 1 second the data as expected and after that it shows only the variables ($VORNAME$) on the document (see Screenshot output):
    I have attached the example app, the input- and the output-file.

    Does anybody know, why the docx-file is not showing the data?

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    This is what I see when I open output.docx:

  3. DonManfred

    DonManfred Expert Licensed User

    same here
  4. JOTHA

    JOTHA Well-Known Member Licensed User

    Hello Erel and DonManfred,

    thank you for your feedback!
    I've opened the document on another PC and it was OK :)

    ... so I'm shure that the code is working ...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice