Hi All ,
I want to generate a table inside a word doc. I am trying "MS Word 2007 Doc from Template" but unable to create a table. In other threads i see someone recommended "Advanced Document Templating" plugin.
Please can someone share a sample code for this.
sample table
UserName
Project
ABC
22222
Xyz
33333
Thanks!
Discussion posts and replies are publicly visible
i am currently using "MS Word 2007 Doc from Template"
I would recommend you to go try this plugin for easy table creation in wordAdvanced Document TemplatingPDFOrUsing MS Word 2007 Doc from Template Smart Service you can create table but you have to use XML in appian expression which sometime cause issues.
I haven't learned the Advanced Document Templating plug-in, which might be better (or at least easier). Before it even existed (sometime in 2013), i invented a suite of expression functions that inject WordML elements into standard replacement fields in the standard "Word Doc from Template" smart service which can create arbitrary text formatting as well as arbitrary tables with any number of rows and columns (and any contents in the cells).
I shared an old export of this somewhere in an older comment, if you feel like digging. I don't have access to my normal laptop now so I don't have the export file handy, but it's possible.
Also, I would caveat that it doesn't work quite right if the Word file is then converted to PDF, probably because I used a stripped-down version of the WordML with only the elements necessary to get it working in a Word file.