B4X FEED SithasoDocxTemplator: Creating MS Word Documents from Dynamic Templates in JavaScript

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: SithasoDocxTemplator: Creating MS Word Documents from Dynamic Templates in JavaScript است. این موضوع تا کنون 32 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع SithasoDocxTemplator: Creating MS Word Documents from Dynamic Templates in JavaScript
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
32
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi the

This was an interesting find: , also its just so easy to use and understand.

Below is my template. I am attempting to generate the API documentation for the SithasoDaisy ebook. This was easy to achieve using tables on the demo. And yes, I could fire up HTML2DOCX, but this is not what I wanted.

I wanted to create a template that could suit my needs and all i will do is feed it content. The tables will have repeat rows {#properties} etc. These are stored as lists/arrays in the json file.

برای دیدن تصاویر باید ثبت نام کنید


An example of the output based on a HTML in the running app is like this...

برای دیدن تصاویر باید ثبت نام کنید


So I have JSON files (example attached) that have these definitions, when each component is selected, I am reading the JSON file and then generating the table above.

To do this for the word documents, I will have to do a similar thing. In this case, I click on a button, the file is read and then a simple scripts generates the needed word document.

B4X:

...



 

عقب
بالا