RE: Win32:OLE Excel

2005-08-05 Thread Thomas, Mark - BLS CTR
Then delete all the sheets that start with sheet $SheetTabName = $Book- Worksheets($_)-{Name}; foreach ( 1...$SheetCnt) { $SheetTabName = $Book- Worksheets($_)-{Name}; if ( $SheetTabName =~ /^sheet/i ) {

Win32:OLE Excel

2005-08-04 Thread Hsu, David
Hi, Does someone know of another method of naming the Excel sheets? Currently I am using: ... $Worksheet = $Workbook-Worksheets()-Add(); $Worksheet-{Name} = test $i; ... The sheet names are still Sheet1, Sheet2, etc... Thanks, David ___

RE: Win32:OLE Excel

2005-08-04 Thread Ken Barker
@listserv.ActiveState.com Subject: Win32:OLE Excel Hi, Does someone know of another method of naming the Excel sheets? Currently I am using: ... $Worksheet = $Workbook-Worksheets()-Add(); $Worksheet-{Name} = test $i; ... The sheet names are still Sheet1, Sheet2, etc... Thanks, David

Re: Win32:OLE Excel

2005-08-04 Thread $Bill Luebkert
Hsu, David wrote: Hi, Does someone know of another method of naming the Excel sheets? Currently I am using: ... $Worksheet = $Workbook-Worksheets()-Add(); $Worksheet-{Name} = test $i; ... The sheet names are still Sheet1, Sheet2, etc... my $workbook = $Excel-Workbooks-Add(); my

RE: Win32:OLE Excel

2005-08-04 Thread Hsu, David
Ken, I am using Win32::OLE. Add_worksheet uses the Spreadsheet:WriteExcel module. Thanks, David -Original Message- From: Ken Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 12:07 PM To: Hsu, David; Perl-Win32-Users@listserv.ActiveState.com Subject: RE: Win32:OLE Excel

RE: Win32:OLE Excel

2005-08-04 Thread dkazatsky
@listserv.ActiveState.com cc: Subject: RE: Win32:OLE Excel Ken, I am using Win32::OLE. Add_worksheet uses the Spreadsheet:WriteExcel module. Thanks, David -Original Message- From: Ken Barker [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 04, 2005 12:07 PM To: Hsu, David; Perl-Win32

Re: Problem With Win32::OLE and InternetExplorer.Application

2005-07-14 Thread StoneBeat
request with InternetExplorer.Application but the object refuses to do it and always does a GET request. Searching in MSDN i have found : http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/n avigate.asp and my Code is : use Win32::OLE qw(EVENTS); use strict

Problem With Win32::OLE and InternetExplorer.Application

2005-07-13 Thread StoneBeat
Hi, i am triying to do a POST request with InternetExplorer.Application but the object refuses to do it and always does a GET request. Searching in MSDN i have found : http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/navigate.asp and my Code is : use Win32::OLE qw

Re: Problem With Win32::OLE and InternetExplorer.Application

2005-07-13 Thread $Bill Luebkert
is : use Win32::OLE qw(EVENTS); use strict ; my $IE = Win32::OLE-new(InternetExplorer.Application); my $respuesta = X x 2000 ; $IE-Navigate('http://192.168.7.1',0,'_BLANK',$respuesta,undef); Why not use LWP instead or do you need the browser window ? Maybe a little background on what

Use works but require does not! what do I need to change to get rid of this error Can't locate Win32::OLE qw(in with) in @INC

2005-07-08 Thread Drobnis, Mark
Why does the use find the file and the require does not? The Win32.pm is located in, C:\Perl\lib\Win32.pm Can't locate Win32::OLE qw(in with) in @INC (@INC contains: /package0/filpods/loaders . C:\Program Files\ActiveState Komodo 3.1\dbgp\perllib C:\perl\lib C:\perl\site\lib C:\Program Files

RE: Use works but require does not! what do I need to change to get ridof this error Can't locate Win32::OLE qw(in with) in @INC

2005-07-08 Thread Peter Guzis
-win32-users@listserv.ActiveState.com Subject: Use works but require does not! what do I need to change to get ridof this error Can't locate Win32::OLE qw(in with) in @INC Why does the use find the file and the require does not? The Win32.pm is located in, C:\Perl\lib\Win32.pm Can't locate Win32::OLE

RE: Use works but require does not! what do I need to change to get ridof this error Can't locate Win32::OLE qw(in with) in @INC

2005-07-08 Thread Charles K. Clarkson
Drobnis, Mark wrote: : Why does the use find the file and the require does not? : : The Win32.pm is located in, C:\Perl\lib\Win32.pm : : Can't locate Win32::OLE qw(in with) in @INC (@INC contains: : /package0/filpods/loaders . C:\Program Files\ActiveState Komodo : 3.1\dbgp\perllib C:\perl\lib C

FW: error locating win32:OLE Trying write code that work for both UNIX and MSWin32 Mail

2005-07-06 Thread Drobnis, Mark
Trying write code that work for both UNIX and MSWin32 Mail. This runs on Solaris but doesn't work on windows $win32ole = 'Win32::OLE qw(in with)'; $winconst = Win32::OLE::Const 'Microsoft Outlook'; if ($^O eq 'MSWin32'){ require $win32ole; require $winconst; $Win32::OLE::Warn = 3

Re: FW: error locating win32:OLE Trying write code that work for both UNIX and MSWin32 Mail

2005-07-06 Thread Сергей Черниенко
Hello, Mark, Wednesday, July 06, 2005, 4:11:12 PM, You wrote: DM Trying write code that work for both UNIX and MSWin32 Mail. DM This runs on Solaris but doesn't work on windows DM $win32ole = 'Win32::OLE qw(in with)'; DM $winconst = Win32::OLE::Const 'Microsoft Outlook'; DM if ($^O eq

RE: error locating win32:OLE Trying write code that work for bothUNIX and MSWin32 Mail

2005-07-06 Thread Paul Sobey
Trying write code that work for both UNIX and MSWin32 Mail. This runs on Solaris but doesn't work on windows $win32ole = 'Win32::OLE qw(in with)'; $winconst = Win32::OLE::Const 'Microsoft Outlook'; if ($^O eq 'MSWin32'){ require $win32ole; require $winconst; $Win32::OLE

RE: Win32::GetLastError() [was: Win32:OLE - Speech.VoiceText]

2005-06-14 Thread Jan Dubois
As well as looking at $!, you might also try looking at Win32::FormatMessage(Win32::GetLastError()), as that often gives much a better indication of the problem where windows processes are involved. (You have to 'use Win32;' to do that.) You can use $^E instead of Win32::GetLastError(). It

Re: Win32:OLE - Speech.VoiceText

2005-06-14 Thread $Bill Luebkert
Jon Bjornstad wrote: This code: use Win32::Ole; my $voice = Win32::Ole-new(Speech.VoiceText); $voice-Register('', 'Perl'); $voice-speak(hello world); STDIN;# wait til it finishes speaking has been used succesfully on Windows98 (with the Microsoft Speech SDK installed

Re: Win32:OLE - Speech.VoiceText

2005-06-14 Thread Octavian Rasnita
Oh great! It works this way. Teddy - Original Message - From: Jan Dubois [EMAIL PROTECTED] To: 'Sisyphus' [EMAIL PROTECTED]; perl-win32-users@listserv.ActiveState.com; 'Jon Bjornstad' [EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 5:19 AM Subject: RE: Win32:OLE - Speech.VoiceText

Re: Win32:OLE - Speech.VoiceText

2005-06-14 Thread Octavian Rasnita
, and it might have a little different syntax... But I am wondering why this script doesn't work... use strict; use warnings; use Win32::OLE; my $voice = Win32::OLE-new(Speech.VoiceText); $voice-Register('', 'Perl'); $voice-speak(hello world); STDIN;# wait til it finishes speaking

Re: Win32:OLE - Speech.VoiceText

2005-06-14 Thread Jon Bjornstad
Win32::OLE; my $voice = Win32::OLE-new($speech_object); and all will be well. Thanks a Million! Jon On Jun 13, 2005, at 11:27 PM, Octavian Rasnita wrote: I have also tried the following script under Windows 2000 but it doesn't work and it doesn't give any error. The SAPI 4 is installed

Win32:OLE - Speech.VoiceText

2005-06-13 Thread Jon Bjornstad
This code: use Win32::Ole; my $voice = Win32::Ole-new(Speech.VoiceText); $voice-Register('', 'Perl'); $voice-speak(hello world); STDIN;# wait til it finishes speaking has been used succesfully on Windows98 (with the Microsoft Speech SDK installed) and on Windows 2000 (which has

RE: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Allegakoen, Justin Devanandan
--8--- has been used succesfully on Windows98 (with the Microsoft Speech SDK installed) and on Windows 2000 (which has it installed by default, apparently). The same code does not, however, work on Windows XP. What has changed? There IS a text-to-speech service on XP. How do I

Re: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Sisyphus
- Original Message - From: Jon Bjornstad [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Tuesday, June 14, 2005 9:26 AM Subject: Win32:OLE - Speech.VoiceText This code: use Win32::Ole; my $voice = Win32::Ole-new(Speech.VoiceText); $voice-Register('', 'Perl

RE: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Jan Dubois
On Mon, 13 Jun 2005, Sisyphus wrote: - Original Message - On Tue, 14 Jun 2005, Jon Bjornstad [EMAIL PROTECTED] wrote: This code: use Win32::Ole; my $voice = Win32::Ole-new(Speech.VoiceText); $voice-Register('', 'Perl'); $voice-speak(hello world); STDIN;# wait til

Re: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Jon Bjornstad
= Win32::OLE-new('Speech.VoiceText'); die no voice: $!\n unless $voice; $voice-Register('', 'Perl'); while (STDIN) { $voice-Speak($_, 0); } On XP it dies with no voice: and nothing in $!. On XP I can go into the Control Panel and choose Speech and in the Text to Speech tab I can set the voice

RE: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Jan Dubois
On Mon, 13 Jun 2005, Jon Bjornstad wrote: This code does work on Win98 (with the Speech SDK installed) and Win2000 (stock) but not on XP: use Win::OLE; my $voice = Win32::OLE-new('Speech.VoiceText'); die no voice: $!\n unless $voice; $voice-Register('', 'Perl'); while (STDIN

Re: Win32:OLE - Speech.VoiceText

2005-06-13 Thread Sisyphus
- Original Message - From: Jon Bjornstad [EMAIL PROTECTED] To: Jan Dubois [EMAIL PROTECTED] Cc: 'Sisyphus' [EMAIL PROTECTED]; perl-win32-users@listserv.ActiveState.com Sent: Tuesday, June 14, 2005 1:13 PM Subject: Re: Win32:OLE - Speech.VoiceText Sisyphus, Jan, all, Right. I'm

[OLE] Creating an IFontDisp possible with Win32::OLE?

2005-06-11 Thread Donovan Allen
I have been having pretty good success wrapping some ActiveX objects into Wx perl modules for a project I am working on, but I came across one such object that required an IFontDisp pointer. I have been struggling ever since to figure out if I can actually get access to the stdole (OLE

Re: A question about Win32::OLE. Really need you help!!!

2005-06-10 Thread Japerlh
The following article shows a good example: Automating Windows Applications with Win32::OLE by Henry Wasserman April 21, 2005 On 6/6/05, Sisyphus [EMAIL PROTECTED] wrote: - Original Message - From: J aperlh [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent

Re: A question about Win32::OLE. Really need you help!!!

2005-06-06 Thread Sisyphus
- Original Message - From: J aperlh [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Monday, June 06, 2005 12:48 PM Subject: A question about Win32::OLE. Really need you help!!! A question about Win32::OLE. Really need you help!!! There is a standalone

Difference between Win32::API and Win32::OLE.

2005-06-06 Thread J aperlh
Difference between Win32::API and Win32::OLE. As I know, Win32::API can import and call functions from Win32's Dynamic Link Libraries (DLL), I was wondering if it can import and call functions from standalone executables, just like Win32:OLE does. I tried Win32::OLE to call serveral funtions

A question about Win32::OLE. Really need you help!!!

2005-06-05 Thread J aperlh
A question about Win32::OLE. Really need you help!!! There is a standalone executable written in C/C++. What I am going to do is to write a perl script to call several functions available in this executable. From the following article, I thought the job is very easy. #10 - Win32::OLE

It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread J aperlh
It seems that Win32::OLE::Variant doesn't work! Below is the script: #! perl -W use strict; use Win32::OLE; use Win32::OLE::Variant; my $Array = Variant(VT_ARRAY|VT_R8, [1,2], 2); $Array-Put([[1,2], [3,4]]); Below

RE: It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread Anderson, Mark (Service Delivery)
perl 5.8.4 on NT4 C:\perl -e use Win32::OLE;use Win32::OLE::Variant; my $Array=Variant(VT_ARRAY| VT_R8,[1,2],2); $Array-Put([1,2],[2,3]); Win32::OLE(0.1701): Win32::OLE::Variant-Put(): Wrong number of indices; dimension of SafeArray is 2 at -e line 1. This works fine... it's normally easier

Re: It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread J aperlh
Thanks for you guys help. $Bill Luebkert [EMAIL PROTECTED] found that is a typo of the document: ActivePerl User Guide. Win32::OLE::NEWS - What's new in Win32::OLE The VARIANT-Put(ARRAYREF) form allows assignment to a complete SAFEARRAY This allows automatic conversion from a list of lists

Re: A question about Win32:OLE!

2005-05-31 Thread J aperlh
Thanks for you guys' help! I have a application installed on my system. I can start the application by using: my $app = Win32::OLE-GetActiveObject('Aaa.Bbb'); The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or OLE-Browser. I did a thorough search! Another question

RE: A question about Win32:OLE!

2005-05-30 Thread Steven Manross
:[EMAIL PROTECTED] On Behalf Of J aperlh Sent: Sunday, May 29, 2005 7:09 PM To: perl-win32-users@listserv.ActiveState.com Subject: A question about Win32:OLE! A question about Win32:OLE! Where can I get the program ID of an application? Get it from OLE/COM Object Viewer or something else? my $app

A question about Win32:OLE!

2005-05-29 Thread J aperlh
A question about Win32:OLE! Where can I get the program ID of an application? Get it from OLE/COM Object Viewer or something else? my $app = Win32::OLE-new('Word.Application', 'Quit'); ___ Perl-Win32-Users mailing list Perl-Win32-Users

Win32 OLE - Excel formatting

2005-05-24 Thread Ken Barker
I am new to the mail list. I was looking for any examples in formatting cells in Excel using Win32:OLE. Any help would be much appreciated. Ken Barker [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com

Win32::OLE Can you call ShowOpen Method

2005-05-23 Thread mark
Title: Win32::OLE Can you call ShowOpen Method Hello All, I would like to use OLE to access the common dialog control. I can get access to a number of methods however the ShowOpen does not work. Is it possible to use show open to get a File Open Dialog. I can do this using Win32::GUI

RE: Win32::OLE Can you call ShowOpen Method

2005-05-23 Thread Jack D.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: May 23, 2005 7:01 PM To: perl-win32-users@listserv.ActiveState.com Subject: Win32::OLE Can you call ShowOpen Method Hello All, I would like to use OLE to access

Win32::OLE Threadsafe - When?

2005-05-19 Thread Paul Sobey
Does anybody know when/if Win32::OLE is going to be made threadsafe? It would be unbelievably useful... I only wish I had the C knowledge to do it myself! Cheers, Paul * Gloucester Research Limited believes the information provided

Win32::OLE question

2005-05-09 Thread Chris Cappelletti
I have a line of code that gives an error. This line of code: my $dll = new Win32::OLE(Artwork.db.api); Gives this error: Win32::OLE(0.1403) error 0x800401f3: Invalid class string at (eval 34) line 1 To me this indicates that the dll is not registered correctly with windows

Re: Win32::OLE question

2005-05-09 Thread Mike G
: I have a line of code that gives an error. This line of code: my $dll = new Win32::OLE(Artwork.db.api); Gives this error: Win32::OLE(0.1403) error 0x800401f3: Invalid class string at (eval 34) line 1 To me this indicates that the dll is not registered correctly with windows. That is not however

app won't go visible on remote machine with Win32::OLE

2005-05-06 Thread Jim Guion
I am trying to use Win32::OLE from a test_control computer (Windows2003Server) to manipulate IE browsers on other computers (WindowsXP and Windows2000 workstations). It works fine if I specify the localhost instead of a remote machine (remote only in the sense of being different computers

Win32 OLE issue, maybe

2005-05-04 Thread Chris Cappelletti
Here's the situation. I have some perl code running fine on one windows box. I moved it to another box and installed all the appropriate modules. I am now getting the following message in my error log: Win32::OLE object version 0.1702 does not match $Win32::OLE::VERSION 0.1403 at C:/Perl/lib

RE: Win32 OLE issue, maybe

2005-05-04 Thread Chris Cappelletti
-How much did you copy and how did you go about it? It sounds like you partially overwrote the -second computer's copy of Win32::OLE with a different version. Try using PPM to reinstall -Win32::OLE. I didn't copy any of the perl stuff. I installed a fresh copy of perl and then used PPM

RE: Win32 OLE issue, maybe

2005-05-04 Thread Peter Guzis
How much did you copy and how did you go about it? It sounds like you partially overwrote the second computer's copy of Win32::OLE with a different version. Try using PPM to reinstall Win32::OLE. Make sure you are only copying the modules you need. Overwriting important modules

Re: cdo win32-ole object model guard

2005-04-23 Thread Bob Davis
Chris Cappelletti wrote: I have a perl program that sends email via win32-ole cdo. I started having the 2 dialogs since upgrading :-( to outlook 2003. The dialogs read: Here's the situation. If I remember correctly (and I probably don't) there are three normal ways to use MAPI to send email

RE: cdo win32-ole object model guard

2005-04-20 Thread Ken Cornetet
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Davis Sent: Tuesday, April 19, 2005 9:44 PM To: Perl-Win32-Users@listserv.ActiveState.com Subject: cdo win32-ole object model guard Hi I have a perl program that sends email via win32-ole cdo. I started having the 2 dialogs since

Win32::OLE behavior on IMessageFilter::HandleIncomingMessage SERVERCALL_RETRYLATER

2005-04-13 Thread Jeff Schultz
return either SERVERCALL_RETRYLATER if I can't handle the request now, or SERVERCALL_ISHANDLED if I want the request to be processed. The problem it seems that when I make 2 simultaneous calls from Win32::OLE into my server, one of them returns the error call was rejected by callee. It is as if instead

RE: Win32::OLE behavior on IMessageFilter::HandleIncomingMessageSERVERCALL_RETRYLATER

2005-04-13 Thread Jan Dubois
actually retries the call while Perl Win32::OLE does not provide this implementation. I did a quick grep of the Win32::OLE source and found no references to IMessageFilter, RetryRejected, or anything like that but I could have missed something. All I want is for my COM call to be retried until

Re: Win32::OLE behavior on IMessageFilter::HandleIncomingMessageSERVERCALL_RETRYLATER

2005-04-13 Thread Jeff Schultz
On 4/13/05, Jan Dubois [EMAIL PROTECTED] wrote: Win32::OLE only implements OLE Automation (access to IDispatch interfaces). If you want transparent retries from scripting languages then you need to implement this in your IDispatch interface implementation yourself. Thanks for the response

Problem in Win32::OLE::Variant

2005-03-26 Thread Jian Xia
Hello perl-win32-users, I use Win32::OLE to read EXCEL files, like this: use Win32::OLE; use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Excel'; our $Excel = Win32::OLE-GetActiveObject('Excel.Application') || Win32::OLE-new('Excel.Application', 'Quit'); my $Book = $Excel

what's wrong in Win32-OLE, DBD-ADO, Dynaloader or ............. i n my script

2005-03-15 Thread joachim . goerner
I have this: --Begin STDOUT -- 1 2 Win32::OLE(0.1702): GetOleObject() Not a Win32::OLE object at C:/Perl/site/lib/Win32/OLE/Lite.pm line 154. Win32::OLE(0.1702): GetOleObject() Not a Win32::OLE object at C

Win32::OLE - Setting VBA property

2005-03-08 Thread Suresh Govindachar
Hello, If myDestination is a folder in Microsoft Outlook VBA code, it is possible to execute a VBA line such as the following: myDestination.Items(1).UnRead = 1 This will mark the first mail inside the folder myDestination as unread (setting the mail item's UnRead property to true). I tried

RE: Win32::OLE - Setting VBA property

2005-03-08 Thread Jan Dubois
On Tue, 08 Mar 2005, Suresh Govindachar wrote: Hello, If myDestination is a folder in Microsoft Outlook VBA code, it is possible to execute a VBA line such as the following: myDestination.Items(1).UnRead = 1 This will mark the first mail inside the folder myDestination as unread

Strange VBA code works; but can't make it work in Win32::OLE perl

2005-03-08 Thread Suresh Govindachar
Hello again, In VBA and in Win32::OLE perl, I have code to traverse the folders in Microsoft Outlook and to figure out which folders have unread messages. My goal is that every folder that has unread messages should have all its parent-folders displayed in Outlook with [-]. By trial and error

Win32:OLE - Threadsafe?

2005-02-28 Thread Neil Burnett
Has anything happened to solve this clean up issue with Win::OLE and threads? Free to wrong pool ... during global destruction I am avoiding the error at the moment by taking jan and paul's advice (thanks) collectively: - require not use Win32::OLE and do it inside the thread sub I have also

Re: Win32:OLE - Threadsafe?

2005-02-28 Thread Kevin Carothers
) collectively: - require not use Win32::OLE and do it inside the thread sub I have also had to comment out using Win32:OLE:Constants and revert to the actual numbers I need (E.g 65001 instead of Win32::OLE::CP_UTF8() ). I couldn't get them to work with use or require either inside or outside

RE: Win32:OLE - Threadsafe?

2005-02-28 Thread Neil Burnett
-Original Message- From: Kevin Carothers [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 6:59 PM To: Neil Burnett Cc: [EMAIL PROTECTED] Subject: Re: Win32:OLE - Threadsafe? On Mon, 28 Feb 2005 13:12:40 +0100, Neil Burnett [EMAIL PROTECTED] wrote: Has anything happened

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Steven Manross
I use events with IE automation. use Win32::OLE qw(EVENTS) Then check the Win32::OLE docs or the archive lists to see how to use them. Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Carothers Sent: Tuesday, February 22, 2005 4:21 PM

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Andrew McFarlane
I think that I'm seeing a but in the Win32::OLE::Lite::in method. When I turn on event handling and then iterate through a collection of IE browser objects: my $objectCollection = $document-All(); foreach my $object( in $objectCollection ) { # Blah, blah

RE: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-23 Thread Jan Dubois
On Wed, 23 Feb 2005, Andrew McFarlane wrote: I think that I'm seeing a but in the Win32::OLE::Lite::in method. [...] How do I alert the powers that be about this potential defect? Can you send me a complete program that I can use to reproduce the problem? Cheers, -Jan

Re: Win32::OLE : Bizarre Push while Examining IE Events

2005-02-22 Thread Kevin Carothers
: I need help in figuring out how to prevent an exception from occurring when I try to examine Internet Explorer browser events using Win32::OLE. Thanks in advance for your help. I have a library that allows one to drive Internet Explorer. My code runs well until I try to examine the window

Win32::OLE : Bizarre Push while Examining IE Events

2005-02-20 Thread Andrew McFarlane
I need help in figuring out how to prevent an exception from occurring when I try to examine Internet Explorer browser events using Win32::OLE. Thanks in advance for your help. I have a library that allows one to drive Internet Explorer. My code runs well until I try to examine the window

RE: Win32::OLE-GetActiveObject not working!

2005-01-22 Thread Richard Grant
Are you running XP SP2 or recently upgraded? Yes to SP2, but not recent. Recent hot fixes.. auto applied by windows update. Recently trying to use Win32::OLE though, so no help in finding out if this is something new.. but others seem to have similar problems. This returns the value zero: use

Re: Win32::OLE-GetActiveObject not working!

2005-01-21 Thread StoneBeat
I have the same problem with new MSN Messenger El Jueves 20 Enero 2005 23:05, [EMAIL PROTECTED] escribió: Richard, I've been having similar difficulty using Win32::OLE with Internet Explorer recently. I wrote code that worked a month ago that doesn't work today. Perl simply can't get

RE: Win32::OLE-GetActiveObject not working!

2005-01-21 Thread Aaron.Tesch
::OLE-GetActiveObject not working! Richard, I've been having similar difficulty using Win32::OLE with Internet Explorer recently. I wrote code that worked a month ago that doesn't work today. Perl simply can't get an OLE connection to Internet Explorer anymore, even though I can still connect

Scriptomatic 2 (Win32::OLE)

2005-01-20 Thread Chris
For those who haven't seen this yet, it was in today's edition of Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe someone on this list will. Cool Tool: Scriptomatic 2 It's a brand-new version of what is probably the

Re: Scriptomatic 2 (Win32::OLE)

2005-01-20 Thread Johan Lindstrom
At 15:59 2005-01-20, Chris wrote: For those who haven't seen this yet, it was in today's edition of Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe someone on this list will. I just tried it, and the .hta file worked once this was installed:

RE: Scriptomatic 2 (Win32::OLE)

2005-01-20 Thread Joe Discenza
Title: Scriptomatic 2 (Win32::OLE) Chris wrote, on Thu 1/20/2005 09:59 : For those who haven't seen this yet, it was in today's edition of Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe someone on this list will.: http://www.microsoft.com/downloads

Win32::OLE-GetActiveObject not working!

2005-01-20 Thread Richard Grant
Here is a snippit based on the example in the ActivePerl User Guide with iTunes instead of Excel.. # use existing instance if iTunes is already running eval {$iTunesHandle = Win32::OLE-GetActiveObject('iTunes.Application')}; die iTunes not installed if $@; unless (defined $iTunesHandle

RE: Win32::OLE-GetActiveObject not working!

2005-01-20 Thread Michaud, Richard1
20, 2005 3:30 PM To: perl-win32-users@listserv.ActiveState.com Subject: Win32::OLE-GetActiveObject not working! Here is a snippit based on the example in the ActivePerl User Guide with iTunes instead of Excel.. # use existing instance if iTunes is already running eval {$iTunesHandle = Win32::OLE

RE: Win32::OLE-GetActiveObject not working!

2005-01-20 Thread Richard Grant
with it using Win32::OLE, just this function seems to be acting odd. And it seems to be something that is part of a recent pattern that has root in the RPC layer. Richard ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe

RE: Win32::OLE-GetActiveObject not working!

2005-01-20 Thread Mike.Owens
Richard, I've been having similar difficulty using Win32::OLE with Internet Explorer recently. I wrote code that worked a month ago that doesn't work today. Perl simply can't get an OLE connection to Internet Explorer anymore, even though I can still connect to Excel, etc. Something must

Win32::OLE and Excel Pivot Parameters

2005-01-07 Thread Larry Palkendo
Hello, I am trying to change parameters of a pivot table use Win32::OLE. # Set pivot fields... $tbl-AddFields(DATE, NETWORK); $tbl-PivotFields(PPPFAILPPPNEGOTIATION)-{Orientation} = 4; $tbl-PivotFields(TFEPINFOUNAVAILABLE)-{Orientation} = 4; Is there a way or does anyone know

Re: Win32::OLE::GetActiveObject problem

2005-01-05 Thread Mike.Owens
made no changes to Perl or the code. I've tried to track down a solution with no luck. Any ideas? Thanks in advance, Mike - $Bill Luebkert wrote: Share some minimal code snippet. use strict; use Win32::OLE; my $IEWin = Win32::OLE- GetActiveObject

RE: Win32::OLE::GetActiveObject problem

2005-01-02 Thread Wenjie Wang
:-Original Message- :From: [EMAIL PROTECTED] :[mailto:[EMAIL PROTECTED] Behalf Of :Matthew Bertrand :Sent: Friday, 31 December 2004 12:29 PM :To: perl-win32-users@listserv.ActiveState.com :Subject: Re: Win32::OLE::GetActiveObject problem : : :$Bill Luebkert wrote: : :Share some minimal

Re: Win32::OLE::GetActiveObject problem

2005-01-01 Thread Dmitry Bolshakoff
May be http://www.winguides.com/registry/display.php/964/ will help WBR Dmitry Bolshakoff [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to grab any

Re: Win32::OLE::GetActiveObject problem

2004-12-31 Thread $Bill Luebkert
looked at DCOMCNFG just in case it was a perms problem. use Win32::OLE; $Count = Win32::OLE-EnumAllObjects(sub { my $Object = shift; my $Class = Win32::OLE-QueryObjectType($Object); printf # Object=%s Class=%s\n, $Object, $Class; }); That works for me at least with Excel objects

Win32::OLE::GetActiveObject problem

2004-12-30 Thread mattbert
I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to grab any existing IE browser windows and close them. The GetActiveObject() method has no problem grabbing an existing IE browser on my laptop. Unfortunately, GetActiveObject() cannot find any existing IE browsers when

Re: Win32::OLE::GetActiveObject problem

2004-12-30 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: I wrote a Perl script that uses the Win32::OLE::GetActiveObject method to grab any existing IE browser windows and close them. The GetActiveObject() method has no problem grabbing an existing IE browser on my laptop. Unfortunately, GetActiveObject() cannot find

RE: Win32::OLE::GetActiveObject problem

2004-12-30 Thread Steven Manross
objects -- I looked at DCOMCNFG just in case it was a perms problem. use Win32::OLE; $Count = Win32::OLE-EnumAllObjects(sub { my $Object = shift; my $Class = Win32::OLE-QueryObjectType($Object); printf # Object=%s Class=%s\n, $Object, $Class; }); But of course, I can create either

Re: How can I detect 'Security Alert' windows in IE using Win32::OLE?

2004-12-29 Thread Am Turnip
Use Win32::GuiTest or Win32::ActAcc (active accessibility). --- Jim Guion [EMAIL PROTECTED] escribió: These windows popup when changing from a non-secure to secure connection and vice-versa, which is part of the application I am writing tests for. I need to be able to detect that the alert

How can I detect 'Security Alert' windows in IE using Win32::OLE?

2004-12-28 Thread Jim Guion
These windows popup when changing from a non-secure to secure connection and vice-versa, which is part of the application I am writing tests for. I need to be able to detect that the alert window opened and close it appropriately so that the application can continue. Thanks for any guidance! Jim

Win32::OLE-new(MAPI.Session) generates Cannot change thread mo de after it is set.

2004-11-12 Thread Warner, Jim
Title: Win32::OLE-new(MAPI.Session) generates Cannot change thread mode after it is set. I am using the example code in the Active State documentation under the title, Is there a way to access MAPI from my Perl script?, at http://aspn.activestate.com/ASPN/docs/ActivePerl-5.6/faq/Windows

RE: Win32::OLE-new(MAPI.Session) generates Cannot change thread mode after it is set.

2004-11-12 Thread Ken Cornetet
Title: Message Win32::OLE-Initialize(Win32::OLE::COINIT_OLEINITIALIZE);my $session = Win32::OLE-new("MAPI.Session"); -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Warner, JimSent: Friday, November 12, 2004 1:21 PMTo:

RE: Win32::OLE - Threadsafe?

2004-11-11 Thread Paul Sobey
Just realised if you turn that use into a require Win32::OLE after the threads have been spawned, it works ok. Anyone know why this should be so? I thought I read somewhere that Win32::OLE was threadsafe but it seems not! P. -Original Message- From: $Bill Luebkert [mailto:[EMAIL

Re: Win32::OLE - Threadsafe?

2004-11-11 Thread Jeff Griffiths
Paul Sobey wrote: Just realised if you turn that use into a require Win32::OLE after the threads have been spawned, it works ok. Anyone know why this should be so? I thought I read somewhere that Win32::OLE was threadsafe but it seems not! Seeing as Jan occasionally mentions that he wuld like

RE: Win32::OLE - Threadsafe?

2004-11-11 Thread Jan Dubois
On Thu, 11 Nov 2004, Jeff Griffiths wrote: Paul Sobey wrote: Just realised if you turn that use into a require Win32::OLE after the threads have been spawned, it works ok. Anyone know why this should be so? I thought I read somewhere that Win32::OLE was threadsafe but it seems not! Seeing

Win32::OLE - Threadsafe?

2004-11-10 Thread Paul Sobey
Hi Guys, On my machine (AP 5.8.4), the following code runs fine when the use Win32::OLE line is commented, but throws an exception at the end when it is not. Anybody know why? Am I doing something silly, or is this module known to have problems with threads? Cheers, Paul use threads

Re: Win32::OLE - Threadsafe?

2004-11-10 Thread $Bill Luebkert
Paul Sobey wrote: Hi Guys, On my machine (AP 5.8.4), the following code runs fine when the use Win32::OLE line is commented, but throws an exception at the end when it is not. Anybody know why? Am I doing something silly, or is this module known to have problems with threads? Cheers

Convert Python Com Code to Win32::OLE

2004-11-05 Thread Celeste Suliin Burris
win32com.client gp = win32com.client.Dispatch(esriGeoprocessing.GpDispatch.1) testtext = gp.Usage(Buffer_analysis) print testtest Here's my perl script - which doesn't work. use Win32::OLE; # Set some variables my $Class = esriGeoprocessing.GpDispatch.1; my $gp = Win32::OLE-new($Class) || die Could

RE: Convert Python Com Code to Win32::OLE

2004-11-05 Thread Jan Dubois
On Fri, 05 Nov 2004, Celeste Suliin Burris wrote: testtext = gp.Usage(Buffer_analysis) ... $testtext = $gp-{Usage}-(Buffer_analysis); Try: $testtext = $gp-Usage(Buffer_analysis); Cheers, -Jan ___ Perl-Win32-Users mailing list [EMAIL PROTECTED]

Re: Convert Python Com Code to Win32::OLE

2004-11-05 Thread Celeste Suliin Burris
Unfortunately, that doesn't work either. I think I tried it before in my thrashing around. Thanks for the help, anyway On Nov 5, 2004, at 13:02, Jan Dubois wrote: On Fri, 05 Nov 2004, Celeste Suliin Burris wrote: testtext = gp.Usage(Buffer_analysis) ... $testtext =

Re: Convert Python Com Code to Win32::OLE

2004-11-05 Thread Celeste Suliin Burris
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Celeste Suliin Burris Sent: Friday, November 05, 2004 3:57 PM To: [EMAIL PROTECTED] Subject: Convert Python Com Code to Win32::OLE I'm a Unix systems administrator who is making the transition to Windows. I am trying to access some COM

Convert Python Com Code to Win32::OLE - The answer

2004-11-05 Thread Celeste Suliin Burris
, this is the simplest sample in the book... use Win32::OLE; my $Class = esriGeoprocessing.GpDispatch.1; my $gp = Win32::OLE-new($Class) || die Could not create a COM '$Class' object; my $testtext = $gp-Usage('Buffer_analysis'); print $testtext; On Nov 5, 2004, at 15:15, Celeste Suliin Burris wrote

Win32::OLE, WMI, and Variable Question

2004-07-06 Thread ANDERSON, JEFFREY
is printed to the screen. Here is my perl code: use strict; use Win32::OLE; my( $objWMI, $objNewJob, $strError, $strJobID ); $objWMI = Win32::OLE-GetObject( winmgmts:.\\root\\cimv2 ); $objNewJob = $objWMI-Get( Win32_ScheduledJob ); $strError = $objNewJob-Create('Notepad.exe

Win32::OLE Outlook

2004-05-07 Thread Chris
I found the below example in a previous post. When I attempt to change olFolderInbox to any other folder (i.e. olFolderStuff) it fails. Can someone send me an example of how to do this or point me in the right direction? When I try the change the folder name I get: Win32::OLE(0.1601) error

<    1   2   3   4   5   >