How can you use bookmarks through COM in PHP?
With the code below I have been able to open a word document but I cannot use the bookmarks.
From creating a word macro I got this:ActiveDocument.Bookmarks("BookmarkName").Select, and tried to translate that into PHP: $word->ActiveDocument->Bookmarks("BookmarkName)->Select;
But this (and countless other variants) did not work, does anyone know how this is done?
Best regards,
<?
$word=new COM("word.application") or die("Cannot start MS Word");
print "Loaded word version ($word->Version)\n";
$word->visible = 1 ;
$word->Documents->Add();
$word->Selection->Typetext("This is a test");
?>