Generate a table inside a word doc

Certified Associate Developer

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

Parents
  • 0
    Certified Lead Developer

    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.

Reply
  • 0
    Certified Lead Developer

    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.

Children
No Data