Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: MS-Word OLE and Joining Tables

by roboticus (Canon)
on Dec 30, 2012 at 18:14 UTC ( #1010950=note: print w/ replies, xml ) Need Help??


in reply to MS-Word OLE and Joining Tables

BrianP6:

OK, you've converted the code as shown. What happens when you run it? (I can't run it because I don't have the necessary infrastructure here.) The error message and/or other symptoms might have the clue needed to help solve your problem.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: MS-Word OLE and Joining Tables
Re^2: MS-Word OLE and Joining Tables
by BrianP6 (Initiate) on Dec 30, 2012 at 19:27 UTC

    Hi Roboticus, You are absolutely right, my apologies. When I run my code I get the error:

    Can't locate object method "Range" via package "Count"

    So, I printed out the contents of $oPara and I got the word "Count" out of it .... so I guess it's not a hash.

    If I remove the hashing and turn it back to "foreach my $oPara ($Word->ActiveDocument->Paragraphs)", then the error message I get is:

    Can't call method "information" on an undefined value"

    Thanks for taking the time to look

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-09-21 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls