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


In reply to Re: how do i open a word doc? by Anonymous Monk
in thread how do i open a word doc? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.