in reply to how do i open a word doc?

Basically the word documents I want to open will be stored locally, not sure where exactly yet but for now lets assume its on the users c: drive. I tried using a link to the file but as it’s a .doc extension it doesn’t seem to recognise it, I changed the file to a .txt extension and it opened it up in the browser.(so it recognises .txt but not .doc)

I assume its not recognising the .doc format and I have to tell it this somehow. However I don’t have access to the Win32 module as we are using an earlier version of Perl. So I guess im asking if there is a way I can get round this. The script I’m running is a perl script that just outputs data in a table and I want one of these cells to be the link to the file.

At the moment if I say

<td><ahref="c:/worddoc.doc">Link</a></td>
When I click the link I just get a blank page.

My preference would be to have the document actually open up in word on the client side. Being new to Perl im just trying out a few ways of doing things but not getting very far. (the force is not strong in this one…. yet)

Hopefully that clarifies things.

Many thanks for your help so far.

20050304 Janitored by Corion: Fixed formatting, added code tags. Please preview before you post

Replies are listed 'Best First'.
Re^2: how do i open a word doc?
by holli (Abbot) on Mar 04, 2005 at 09:49 UTC
    You cannot create link to file on the client's machine, thank goodness. That would be a BIG security issue.


    holli, /regexed monk/