Maybe runninmg the script as CGI (so the output goes to
browser, the script cannot find the file (the root of the
server is probably not the same as the root of the current
Disk).
Try replacing "/Intranet/test.doc" with "test.doc" or
"/test.doc", or ...
Just my two pence,
Hermen
29-3-01 16:42:41, [EMAIL PROTECTED] wrote:
>Hello all,
>
>I try to get some properties from an Excel or Word document
with this
>script. It works fine on DOS windows but not in Internet
Explorer. I am
>using IIS 4.0 and Office 98.
>
>#Example to get document title
>
> use Win32::OLE;
>
> print "Content-type: text/html\n\n";
>
> print "<html><head></head><body>";
>
> print "Example to get document title<br>\n";
>
> $xl = Win32::OLE->GetObject("/Intranet/test.doc");
> $title = $xl->BuiltinDocumentProperties(1)->{Value};
> print "Title: $title<br>\n";
>
> $xl -> close(0);
>
> print "</body></html>";
>
>Thanks,
>
>Ignacio Lacosta,
>Spain.
>
>
>
>_______________________________________________
>Perl-Win32-Web mailing list
>[EMAIL PROTECTED]
>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-
web
>
>
Hermen Lesscher
===============================================================
===
To regret one's own experiences is to arrest one's own
development
Oscar Wilde
===============================================================
===
[EMAIL PROTECTED]
http://www.lesscher.net
http://ortelius.xs4all.nl
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web