Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Win32::OLE->GetObject Fails on MS Word Document

by roho (Bishop)
on Dec 16, 2020 at 22:45 UTC ( [id://11125314]=note: print w/replies, xml ) Need Help??


in reply to Re: Win32::OLE->GetObject Fails on MS Word Document
in thread Win32::OLE->GetObject Fails on MS Word Document

Thank you davies. That works fine. Leaves me wondering what (if anything) GetObject is good for.

"It's not how hard you work, it's how much you get done."

  • Comment on Re^2: Win32::OLE->GetObject Fails on MS Word Document

Replies are listed 'Best First'.
Re^3: Win32::OLE->GetObject Fails on MS Word Document
by davies (Prior) on Dec 16, 2020 at 22:51 UTC

    If you really need to access a running instance, that's what GetObject does. It's very rare, but can be useful if you are doing weird things and can end up with invisible instances that you want to close down elegantly rather than through the task manager. It can also be useful if you need to do some manual work first and then let the code take over.

    Regards,

    John Davies

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 05:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found