in reply to Word wdDocumentsPath and ActivePrinter
is the syntax of a subroutine call, and
$word->Options->DefaultFilePath(wdDocumentsPath) = $path_default;
is an attempt to assign to a subroutine call. That is possible for specially prepared subroutines, like for example substr, but here the error message tells it is not ok.
I don't have Word here now, but I suspect that something like
$word->Options->{DefaultFilePath}->{wdDocumentsPath} = $path_default;
e.g. setting an option rather than calling a sub, will do what you want. hth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Word wdDocumentsPath and ActivePrinter
by nevinl (Novice) on Feb 09, 2008 at 21:50 UTC | |
by stiller (Friar) on Feb 10, 2008 at 00:09 UTC |