Hi,
I've managed to open up a word file and make edits from my php script, however Im having problems positioning where I make my edits. E.g. I've tried:
$word->Selection->MoveDown("Unit:=wdLine", "Count:=1");
$word->Selection->InsertAfter("*4*");
$word->Selection->MoveDown("Unit:=wdLine", "Count:=1");
$word->Selection->InsertAfter("*5");
But it just doesnt seem to have any effect, it just places them in the same place. Im not sure if its to do with the table that Ive got within word?. However, when I record a macro within word itself, the command:
Selection.MoveDown Unit:=wdLine, Count:=1
will work just fine.
Any ideas are much appreciated,
Cheers,
Jon
I've managed to open up a word file and make edits from my php script, however Im having problems positioning where I make my edits. E.g. I've tried:
$word->Selection->MoveDown("Unit:=wdLine", "Count:=1");
$word->Selection->InsertAfter("*4*");
$word->Selection->MoveDown("Unit:=wdLine", "Count:=1");
$word->Selection->InsertAfter("*5");
But it just doesnt seem to have any effect, it just places them in the same place. Im not sure if its to do with the table that Ive got within word?. However, when I record a macro within word itself, the command:
Selection.MoveDown Unit:=wdLine, Count:=1
will work just fine.
Any ideas are much appreciated,
Cheers,
Jon