Hello all, i've built a system where users can write their own templates, upload them to server and then download them with data.
but, I've encountered a problem when template have header or footer - they simple don't merge!
I've heard that since 1.5.0 "headers and footers are automatically loaded for OpenOffice & MsOffice."
but is there any way to activate this feature?
some basic info about my system:
template could be docx or xlsx
i load TBS with 
| $this->TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN); | 
i load templates via this code:
| $path = self::getTemplatesPath() . DS . $this->template; // DS is directory separator if (file_exists($path))
 $this->TBS->loadTemplate($path, OPENTBS_ALREADY_UTF8);
 | 
i do all merging logic via 1 block and big custom function:
| $this->TBS->MergeField('tbs', '~field', true); | 
and field function of my plugin takes care about any field it encountered
so, what i want to know:
1) if there are any way to automatically mergeField on headers and footers?
2) if no - how i can detect if header file exist in .docx? (and i need to test if its docx first, right?)
3) assuming i can detect header and process header - how do i do mergeField both header and body in one document?