7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi gurus
I am trying to understand some advanced (for me) perl constructions (syntax) following this tutorial I am trying to parse html:
Using Mojo::DOM | Joel Berger
say "div days:";
say $_->text for $dom->find('div.days')->each;
say "\nspan hours:";
say $_->text for... (1 Reply)
Discussion started by: wakatana
1 Replies
2. Shell Programming and Scripting
Hello Gurus,
I am begginer in perl. I would like to ask several questions, some related to perl and its syntax but most will be regarding to WIN32 OLE. My main goal is to develop script that will check word document structure (return some information) and make some changes in this document (if it... (0 Replies)
Discussion started by: wakatana
0 Replies
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
I am trying to insert a picture into a worksheet in Excel using Perl the following is the code
use Win32::OLE;
use Win32::OLE::Const "Microsoft Excel";
use Win32::OLE qw(in with);
# Initiate Excel application
$Excel = Win32::OLE->new('Excel.Application', 'Quit');
$Excel->{Visible} =1;
#... (1 Reply)
Discussion started by: cold_Que
1 Replies
5. Shell Programming and Scripting
Hey guys,
I'm trying to go through my emails in Outlook until I find an email with a certain subject line.
I am able to send emails with no problem, but reading emails and their properties (From, Subject, etc.) is my main problem.
Basically, I don't know where to start and using search engines... (2 Replies)
Discussion started by: kooshi
2 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Hi,
I am trying automate couting number of spell and typo errors in MS Word document using perl script.
In perl script, i am using Win32::OLE module of perl to read MS word document.
Can anybody tell me are there any modules available in perl which can be imported into my script to... (0 Replies)
Discussion started by: 123an
0 Replies
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)