COM_GET_ACTIVE_OBJECT(3) 1 COM_GET_ACTIVE_OBJECT(3)com_get_active_object - Returns a handle to an already running instance of a COM objectSYNOPSIS
variant com_get_active_object (string $progid, [int $code_page])
DESCRIPTION com_get_active_object(3) is similar to creating a new instance of a "COM" object, except that it will only return an object to your script
if the object is already running. OLE applications use something known as the " Running Object Table" to allow well-known applications to
be launched only once; this function exposes the COM library function GetActiveObject() to get a handle on a running instance.
PARAMETERS
o $progid
-$progid must be either the ProgID or CLSID for the object that you want to access (for example Word.Application).
o $code_page
- Acts in precisely the same way that it does for the "COM" class.
RETURN VALUES
If the requested object is running, it will be returned to your script just like any other COM object.
ERRORS /EXCEPTIONS
There are a variety of reasons why this function might fail, the most common being that the object is not already running. In that situa-
tion, the exception error code will be MK_E_UNAVAILABLE; you can use the getCode method of the exception object to check the exception
code.
NOTES
Warning
Using com_get_active_object(3) in a web server context is not always a smart idea. Most COM/OLE applications are not designed to
handle more than one client concurrently, even (or especially!) Microsoft Office. You should read Considerations for Server-Side Au-
tomation of Office for more information on the general issues involved.
PHP Documentation Group COM_GET_ACTIVE_OBJECT(3)
Check Out this Related Man Page
TAP::Object(3pm) Perl Programmers Reference Guide TAP::Object(3pm)NAME
TAP::Object - Base class that provides common functionality to all "TAP::*" modules
VERSION
Version 3.26
SYNOPSIS
package TAP::Whatever;
use strict;
use vars qw(@ISA);
use TAP::Object;
@ISA = qw(TAP::Object);
# new() implementation by TAP::Object
sub _initialize {
my ( $self, @args) = @_;
# initialize your object
return $self;
}
# ... later ...
my $obj = TAP::Whatever->new(@args);
DESCRIPTION
"TAP::Object" provides a default constructor and exception model for all "TAP::*" classes. Exceptions are raised using Carp.
METHODS
Class Methods
"new"
Create a new object. Any arguments passed to "new" will be passed on to the "_initialize" method. Returns a new object.
Instance Methods
"_initialize"
Initializes a new object. This method is a stub by default, you should override it as appropriate.
Note: "new" expects you to return $self or raise an exception. See "_croak", and Carp.
"_croak"
Raise an exception using "croak" from Carp, eg:
$self->_croak( 'why me?', 'aaarrgh!' );
May also be called as a class method.
$class->_croak( 'this works too' );
"_confess"
Raise an exception using "confess" from Carp, eg:
$self->_confess( 'why me?', 'aaarrgh!' );
May also be called as a class method.
$class->_confess( 'this works too' );
"_construct"
Create a new instance of the specified class.
"mk_methods"
Create simple getter/setters.
__PACKAGE__->mk_methods(@method_names);
perl v5.18.2 2014-01-06 TAP::Object(3pm)
Hi,
I'm a complete novice at Unix and need to create a script that does the following...
checks to see if an application server is running.
If the app is running then print 'Available'
Else print 'Unavaliable'
exit from scriopt
I have no idea where to start. I'd be very grateful... (0 Replies)
My first question is:
Is there a version of Microsoft Office out for Unix?
My second Question is:
If there isn't a version of Microsoft Office for Unix, then can i get MS office for MAC OS X and install it on my sparc sytems?
Im running solaris 8 and 10. (2 Replies)
Hi all,
I have some UNIX servers (all flavor to be honest: SOLARIS, AIX, HP-UX) running some applications.
I would like to publish these applications to remote client mainly running Windows XP.
I know i can remotely access the desktop thanks to Cygwin,Hummingbird EXCEED...
But I don't... (2 Replies)
I am using Win32::OLE to write a perl script which opens an excel file. That excel file is password protected and everytime i run that script dialog box pops up and I have to click on Read-Only then my script executes. Is there any way I can specify the readonly attribute in my code so i dont have... (0 Replies)
Hello All,
I have executed one script where i am getting this error,what may be the reason.....
please help me out.
OLE exception from Microsoft Excel
Win32::OLE(0.1403) error 0x800a03ec
in METHOD/PROPERTYGET "open" (1 Reply)
Hi
I would like to check if an instance of a script is already running.
I've seen many different examples, but I haven't the slightest idea as to how to do this.
Can you please help.
Thank you. (5 Replies)
Hi all,
Is win32::OLE module is applicable in linux system???
from my understanding it is not possible..because we have to use some tools for that..for more info refer this website
http://oclug.on.ca/archives/oclug/2001-July/008100.html (1 Reply)