Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: WIn32::OLE debug

by chafelix (Acolyte)
on Oct 12, 2025 at 18:56 UTC ( [id://11166473]=note: print w/replies, xml ) Need Help??


in reply to Re^3: WIn32::OLE debug
in thread WIn32::OLE debug

Then
print "table rows count=", $table->Rows->Count ,".\n"; # prints 23 foreach my $rownum (1 .. $table->Rows->Count) { print "rownum=$rownum\n"; #prints 1 my $row = $table->Rows->Item($rownum); #crashes!

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 191.

is there a way to look at the elements of the $table->Rows object? It would appear that this does not have an Item(1) element

Replies are listed 'Best First'.
Re^5: WIn32::OLE debug
by soonix (Chancellor) on Oct 13, 2025 at 08:29 UTC
    PMFJI, but shouldn't
    my $row = $table->Rows->Item($rownum); #crashes!
    be more something like
    my $row = $table->Rows($rownum)->Item; # probably also crashes, but di +fferently ;-)
    ?
      Nope, same error

      numrows=23

      table rows count=23.

      rownum=1 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 "Rows" at parserworks16.pl line 191.

Re^5: WIn32::OLE debug
by Anonymous Monk on Oct 25, 2025 at 07:26 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2025-12-16 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (97 votes). Check out past polls.

    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.