B4X FEED [B4A] Variable substitution in a RTF file

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [B4A] Variable substitution in a RTF file است. این موضوع تا کنون 60 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [B4A] Variable substitution in a RTF file
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
60
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
I have previously been using the jPOI to the rescue example (in B4J) to substitute string variables for specific words in a MS-Word (DOC) file and it was performing great. String variables I am using inside the file text are of the format: "<<variable>>" .

Would like to try now to do something similar in B4A, though it seems the jPOI could not be used for some reasons, therefore I thought to use the RTF file format.

Seen a reference to a Java library: "com.tutego.jrtf" that has a class which is able to make variable substitution in an existing RTF file:


Asking for some guidance on how to use this class specifically the .inject method in B4A, so I could open an existing RTF, replace the variables (I could have them as key/value Map) and write the resulting file to another file name.

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا