Hi Ken,

Wednesday, January 4, 2006, 5:07:58 AM, you wrote:

LK> Thanks to Steven Manross, I'm a step further along in
LK> troubleshooting this.  Using Steven's suggestion, I got the
LK> following from OLE->LastError: 'Win32::OLE(0.1403) error
LK> 0x80070005: "Access is denied"'.  Does anyone out there know
LK> anything about how the Win2k scheduler accesses objects (and, more
LK> importantly, how to circumvent this problem)?  As I stated
LK> earlier, the scheduled task is running under the same userid I use
LK> to log on when I successfully run my program at a command prompt.
[% snip %]
LK> I created a program using ActiveState's perl 5.8.4, compiled it using
LK> perlapp 5.3.0 and ran it on Windows 2000 Professional SP4 against
LK> Outlook 2000 SR-1 (9.0.0.3821).  It runs properly both from a command
LK> prompt and as a scheduled task.  I released it into production on
LK> Windows 2000 server SP4 using the identical version of Outlook 2000.
LK> Again, it runs great from a command prompt.  When I run it as a
LK> scheduled task, however, it dies because it's not able to get the
LK> Outlook Application.
LK>  
LK> Here's the relevant code:
LK>  
LK>  
LK>     Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE); 
LK>         die Win32::OLE->LastError(),"\n" if Win32::OLE->LastError(  );
LK>     eval { $Outlook =
LK> Win32::OLE->GetActiveObject('Outlook.Application')
LK> };
LK>         die "Outlook is not installed" if $@;
LK>     unless (defined $Outlook) {
LK>         $Outlook = Win32::OLE->new('Outlook.Application', sub
{$_[0]->>Quit;});
LK>             or die "Oops, cannot start Outlook";
LK> <======================= dies here under Win2k srvr as a scheduled task

I'm not sure if this will help or solve your problem - but you could
give Outlook Redemption a look - http://www.dimastr.com/redemption/

"Outlook Redemption works around limitations imposed by the Outlook Security 
Patch and Service Pack 2 of MS Office 98/2000 and Office 2002 and 2003 (which 
include Security Patch) plus provides a number of objects and functions to work 
with properties and functionality not exposed through the Outlook object model."

Good luck!

-- 
Best regards,
 Christopher                            mailto:[EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to