Generate docx from template - Custom Widget

Hi, I integrated docxtemplater into a custom widget.
docxtemplater generates reports and documents from template with {tags}. It handles conditions, loops, and has some other features. Grist is so powerful that it allows us to provide deeply nested tables in docxtemplater as is! :smiley: This is achieved using RECORD function.
Example: Docx generator example - Grist

10 Likes

So cool. Thank you for sharing! :raised_hands:

Hi !

Great news…
Sorry I think I made your public document buggy, wanted to see the source code to understand but it seems it has broke something :astonished:

image

Hi, @Sylvain_Page. No, my public document works :slightly_smiling_face:

Widget source code: https://github.com/stan-donarise/grist-docxtemplater-widget

Hi yes I’ve made some test that’s great !

(would be nice to able to incorporate image fro grist but that’s another story… :slight_smile: )
I was speaking about your grist site example, it which was down yetserday but it seems ok this morning.

1 Like

Hi @stan-donarise ,

It seems your document is not wotking at this moment.
I had some issue with mine so decided to test your public document above.
Here is what I get (Chrome/Guest)


On Firefox/logged-in , it get working… neverending with the following error in the console

Do you have any idea what causes this issue ?

Thanks :slight_smile:

Hi again,

It is now working well as well as mine …
:face_with_raised_eyebrow: :face_with_raised_eyebrow: