Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Word tables, OLE, perl, and me.

by binf-jw (Monk)
on Feb 03, 2009 at 10:08 UTC ( [id://740937]=note: print w/replies, xml ) Need Help??


in reply to Re: Word tables, OLE, perl, and me.
in thread Word tables, OLE, perl, and me.

Just a guess as I don't have time to test this yet.. But you should probably be using 'wdParagraph' to move up.. A think a 'line' is not what you think it is, A paragraph will be terminated by the new line where as the line is just terminated by a 'wrap'.
For example in a multiline title: Table 1: blah blah blah blah blah blah b lah blah blah. <br>
Moving up 1 line would only get to "lah blah blah." where as up 1 paragraph would be "Table 1: blah blah blah blah blah blah blah blah blah." You could then surely just select it as follows:
my $text = $selection->{Range}{Paragraph}{Text};
- John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://740937]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-23 10:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found