From: "Rob Dixon" <[EMAIL PROTECTED]> To: "jon sof" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: Re: problems on opening a word document Date: Wed, 17 Sep 2003 09:44:34 +0100
jon sof wrote: >
> I use the system() to open the word document. It works on > a win98 system but not on another similar machine. > > Both machines uses win98. > > What is the problem? It getting annoying.
It is likely to be because your file associations are not set up correctly. Check whether double-clicking on a .doc file in Windows Explorer starts Word correctly.
You should fix this by reinstalling Word, but for the purposes of your Perl program you could run winword.exe explicitly with the .doc file as a parameter.
HTH,
Rob
That's exactly what i am doing.
$winword_path="c:/progra~1/micros~1/office/winword";
$doc="docs/file.doc";
system(1,$winword_path,$doc);
It works great under a win98 system but not on another win98. It drives me mad.
Both machines are equipped with the Office 97.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
