in reply to Word tables, OLE, perl, and me.
This gives me an error with MoveUp "Can't call method "MoveUp" on an undefined value at ..."my $word = CreateObject Win32::OLE 'Word.Application' or die $!; $word->{Visible} = 1; my $document = $word->Documents->Open('C:/temp/doctest.doc'); my $table = $word->ActiveDocument->Tables(2); my $selection = $table->Select; $selection->MoveUp(wdLine,1); my $str = $selection->Range(0,10)->{Text}; $table->Range->Copy; print qq{$str\n};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Word tables, OLE, perl, and me.
by CountZero (Bishop) on Feb 02, 2009 at 23:12 UTC | |
by binf-jw (Monk) on Feb 03, 2009 at 10:02 UTC |