in reply to Re: WIn32::OLE debug
in thread WIn32::OLE debug
Tables is <Win32::OLE=HASH(0x57d0ab0)>Tables has 70 itemsbefore table loop
table=Win32::OLE=HASH(0x57d0c60) file=C:\Users\...\mydoc.docx
numrows=23
table rows count= Win32::OLE=HASH(0x5606e48)->Rows->Count
OLE exception from "Microsoft Word":
?e? e??a? d??at? ? p??s▀as? ╡e╡???╡???? ??a╡╡?? se a?t?? t? s??????, epe?d? ? p??a?a? ??e? s?????e?╡??a ?e??? ?ata????fa.
Win32::OLE(0.1712) error 0x800a1767 in METHOD/PROPERTYGET "Item" at parserworks16.pl line 188.
The failing line is the last line shownSo it looks like $table->Rows->Count is an object instead of a number! Why is that ?print "table rows count= $table->Rows->Count \n"; # this print seems t +o indicate the problem foreach my $rownum (1 .. $table->Rows->Count) { my $row = $table->Rows->Item($rownum);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: WIn32::OLE debug
by choroba (Cardinal) on Oct 12, 2025 at 17:37 UTC | |
by chafelix (Acolyte) on Oct 12, 2025 at 18:56 UTC | |
by soonix (Chancellor) on Oct 13, 2025 at 08:29 UTC | |
by chafelix (Acolyte) on Oct 13, 2025 at 19:01 UTC | |
by Anonymous Monk on Oct 25, 2025 at 07:26 UTC |