Forum


Replies: 5   Views: 3389
Addcrossreference on wordfragment
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by AndrewCooper  · 15-06-2016 - 12:39

I'm doing the following...

$xref = new WordFragment($docx);
$xref->addCrossReference("blah", array("type" => "bookmark", "referenceName" => "blah"));

And get an error stating that the WordFragment class doesn't have an addCrossReference method.  Is this a licencing issue or version issue?  Since every other Word Content method seems to work on a Word Fragment, I would expect this to do the same. If this isn't the case, could I ask why not?

Andrew