Dynamic rows and columns in Excel doc with Text Doc from Template

I ma trying to generate a new excel file with a dynamic table based on a template, I already tried passing a html table like this with no success

<table border='1'><tr><th>Name</th><th>Department</th><th>Experience</th></tr><tr><td>John</td><td>Accounts</td><td>3 years</td></tr><tr><td>Philip</td><td>HR</td><td>5 years</td></tr><tr><td>Adam</td><td>Networking Services</td><td>2 years</td></tr></table>

 

any help?

note: I am using this smart service beacuse it keeps the styles and formats from the template.

  Discussion posts and replies are publicly visible