perl2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I am trying to print cellText of the tables but its giving error. Here is the sample code. I also tried modifying the IEAutomation.pm as advised in another post but that didn't work either.
Thanks for your help.
#!c:\\perl\\bin use LWP::Debug qw(+); use strict; use Win32::IEAutomation; use Win32::IEAutomation::Table; use Win32::IEAutomation::Element; my $ie = Win32::IEAutomation->new(); $ie->gotoURL('c:\perl\bin\testtable.htm/'); my @atbl = $ie->getAllTables; for my $a (@atbl){ my @allRows = $a->rows; for my $in(@allRows){ my @allCell = $in->cells; for my $y (@allCell){ print $y->cellText; } } };
Sorry -- here is the error message:
Can't locate object method "rows" via package "Win32::IEAutomation::Element" at testtable.pl line 19.

Replies are listed 'Best First'.
Re: Printing cellText
by Mr. Muskrat (Canon) on Nov 26, 2008 at 17:01 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.