Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: 'emptyenum' error w/ use Win32::OLE::Const 'Microsoft Word'

by ff (Hermit)
on Mar 02, 2005 at 19:26 UTC ( [id://435983]=note: print w/replies, xml ) Need Help??


in reply to Re: 'emptyenum' error w/ use Win32::OLE::Const 'Microsoft Word'
in thread 'emptyenum' error w/ use Win32::OLE::Const 'Microsoft Word'

++guha!

Success! Thank you. No more emptyenum complaints (at least after initial testing. :-)

I applied your suggestion to all such wd occurrences:

# instead of: # $x->Selection->Collapse( { Direction=>wdCollapseEnd } ); # do: $x->Selection->Collapse( { Direction=>$wdc->{wdCollapseEnd} } );

As this example also shows, I left other Word-particular terms (such as Selection, Collapse, Direction) alone.

P.S. Yes, I wondered why mine had -1 when others had 65535, but that was a weirdness to leave for another time.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found