Template can be used when you know the exact size of the output or the output is in a fixed format.
E.g. Tax form/ cheques /airline form/railway ticket: all these use templates.
The big between table and template is that in a Table the height changes dynamically.We call a row a 'line' in template.