Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

com_get_active_object(3) [php man page]

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 object

SYNOPSIS
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)
Man Page

10 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

SuSe Linux runs MS Office

SuSe Linux runs MS Office (0 Replies)
Discussion started by: HOUSCOUS
0 Replies

2. UNIX for Dummies Questions & Answers

Script to Test Application Server is running

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)
Discussion started by: duglover
0 Replies

3. UNIX for Dummies Questions & Answers

Office

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)
Discussion started by: vikster007
2 Replies

4. Windows & DOS: Issues & Discussions

Κσολώ Windows, Office,Server

(0 Replies)
Discussion started by: mssoft2
0 Replies

5. UNIX for Advanced & Expert Users

Publishing X applications

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)
Discussion started by: Platinium
2 Replies

6. Shell Programming and Scripting

Win32::OLE open excel file as read only

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)
Discussion started by: dguy
0 Replies

7. Shell Programming and Scripting

OLE ERROR in perl

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)
Discussion started by: suvenduperl
1 Replies

8. UNIX and Linux Applications

How to check if process is running?

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)
Discussion started by: ladyAnne
5 Replies

9. Shell Programming and Scripting

Details about WIN32::OLE

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)
Discussion started by: kavi.mogu
1 Replies

10. UNIX for Dummies Questions & Answers

[Solved] How to Check if a script is running?

Hi All, I am new to Unix... Can you please let me know how we can check if a script is running or not on Solaris box? (4 Replies)
Discussion started by: Rahul466
4 Replies