I have set up a perl script which creates a html page but also Tees this html output to a Word doc. I then use Win32::OLE to open this Word document and print its contents.I have managed to make this work both locally (on server) and remotely(from client) in a test environment where both machines were Windows2000 Advanced Server. Having copied exactly the steps to achieve this onto a live NT production server, the remote call to launch Word is failing with the baffling error:
Can not launch Word Application Win32::OLE(0.1502) error 0x800706ae: "The object universal unique identifier (UUID) was not found" at C:\Inetpub\scripts\paris\produce_sales_conf.pl line 518.
where line 518 is
my $WordApp = Win32::OLE->new('Word.Application','Quit') || die ("Can not launch Word Application ",Win32::OLE->LastError());
I have managed to find out the following about the Object UUID:
The universal unique identifier that identifies a particular RPC object. A server specifies a distinct object UUID for each of its RPC objects; to access a particular object RPC object, a client uses the object UUID to find the server that offers the object.
but am no closer to resolving this issue.
Amazingly if i logon from the remote client to the server as the server Administrator,
there is not a problem. This would suggest to me that it is a permission problem but i have tried giving Everyone access to Launch and Access Word Application from Dcomcnfg including I_USR, System, Administrators,etc to no avail.
Any suggestions as to what i might try? I noticed that in the Win32::OLE section there is code to generate a GUID/UUID. Should I be trying to do this?
Thanks and regards,
Sean
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.