|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: WIn32::OLE debugby Marshall (Canon) |
| on Oct 12, 2025 at 04:43 UTC ( [id://11166464]=note: print w/replies, xml ) | Need Help?? |
|
1. First step turn STDOUT buffering off
$|=1; #put at top of code
This allows error messages and normal prints to appear
in the order of execution.
2. You have one doc that works and one that doesn't. Add error checking on the opens and new operations. my $word =Win32::OLE->new('Word.Application','Quit') or die "blah$!"; my $doc = $word->{Documents}->Open("$word_file") or die "bla2$!"; 3. Add some prints for each variable - look for something weird like undef value
Update: Do both docs render ok on the screen? Can you print them without problems? It is possible with the drawing tools to make something that looks like a table, but is not a table in the Word sense.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||