I must be doing something really stupid here but I cannot get the simplest MergeField on a word document to work. I have no trouble with the automatic merges from global variables such as OnShow. Debug shows no errors only my tag [data.facility] in unchanged.
include('classes/tbs_class.php'); 
include('classes/tbs_plugin_opentbs.php'); 
$tbs = new clsTinyButStrong; 
$tbs->PlugIn(TBS_INSTALL,OPENTBS_PLUGIN); 
$tbs->LoadTemplate($boilerplate);  
$tbs->PlugIn(OPENTBS_DEBUG_XML_SHOW);   
$tbs->MergeField('data',array('facility' => 'Test Facility')); 
$tbs->Show(OPENTBS_FILE,$stamped_boiler_path);   
 | 
 
Above is my php and I have a single .docx with a single tag [data.facility]
Any help would be greatly appreciated.
Thanks, Thomas