I wrote the following script which open the document and insert a
table into document. Bu it did not work. I got a error. I need help
<?
$word=new COM("word.application") or die("Cannot start word for you");
$word->visible =1 ;
$word->Documents->Open("c:\sil.doc");
$word->ActiveDocument->Tables->Add($word->Active
Document->Selection->Range,3,3);
?>
Error on my browser
Loaded word version (8.0a)
Warning: Invoke() failed: Type mismatch in
c:\easyphp\www\wd2.php on line 12
Thanks ,
I need some sample coding that includes open word document insert table, update documents text etc.
When I look at VB sample that is inert table into word document like that :
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= 2
How can I write or translate this command to PHP using COM.
Thanks.
Cengiz Soyukan