I'm creating a document from a template that has a lot of styles in it. The document that gets created has a lot of images and tables, each with a caption. They are being created fine, but I can't figure out how to set them to use the template's caption style.
This is the code I'm using to create tables:
$table_params = array(
'tableStyle'=> 'TableGrid',
'borderColor' => 'BFBFBF',
'border' => 'single',
'textProperties' => array('pStyle' => 'TableTextstandard'),
'caption' => array('text' => $hbd_caption, 'position' => 'above', 'styleName' => 'Table')
);
What am I missing, or is it just not possible?