From: perlperl on
when i run the command
my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create
object \n";

it works fine for 1 host

but on other host i get error:

Win32::OLE(0.1502) error 0x80070005: "Access is denied" at

From: Matt Garrish on

"perlperl" <shahrahulb(a)gmail.com> wrote in message
news:1145915797.473258.278050(a)g10g2000cwb.googlegroups.com...
> when i run the command
> my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create
> object \n";
>
> it works fine for 1 host
>
> but on other host i get error:
>
> Win32::OLE(0.1502) error 0x80070005: "Access is denied" at
>

I don't think anyone will be able to guess you to an answer with only that
to go on. How are the scripts run? By you? As a service? As a scheduled
task? Does the user they're running as have access to run Word? You're
getting an error from the OS, so you need to look outside your script and
figure out what the configuration problem is that's generating this error.

Matt


From: A. Sinan Unur on
"Matt Garrish" <matthew.garrish(a)sympatico.ca> wrote in
news:vQc3g.773$1V4.58757(a)news20.bellglobal.com:

>
> "perlperl" <shahrahulb(a)gmail.com> wrote in message
> news:1145915797.473258.278050(a)g10g2000cwb.googlegroups.com...
>> when i run the command
>> my $document = Win32::OLE->GetObject($wordfile) or die "Cannot create
>> object \n";
>>
>> it works fine for 1 host
>>
>> but on other host i get error:
>>
>> Win32::OLE(0.1502) error 0x80070005: "Access is denied" at
>>
>
> I don't think anyone will be able to guess you to an answer with only
> that to go on. How are the scripts run? By you? As a service? As a
> scheduled task? Does the user they're running as have access to run
> Word? You're getting an error from the OS, so you need to look outside
> your script and figure out what the configuration problem is that's
> generating this error.

A simple Google search on the error code would have helped too:

http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-admin/213804

Sinan

--
A. Sinan Unur <1usa(a)llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html

From: perlperl on
I am running this script as an administrator.....what could be the
access issue

From: perlperl on
ow do i make sure if my script is running as administrator or some
other username... (IUSR_machineName etc)
i logged in to my host as Administrator

 |  Next  |  Last
Pages: 1 2
Prev: long (64bit) to binary
Next: form field