Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.