PDA

View Full Version : HyperLink to Word Document


JoshCrawford
05-20-2003, 04:47 PM
I am having troubles with hyperlinks I setup to Word documents. What I have is an IIS server with some folders setup with documents that I link to. The documents open fine, the problem is it will not let me save back to is location on the IIS server. The option it gives me is a save as... to the local PC. Permissions is not an issue, because if I open Word and browse to the file, open, make changes, save, and it works. Any thoughts???

sage45
05-20-2003, 05:21 PM
Are you using a relative or an absolute path???

-sage-

JoshCrawford
05-20-2003, 06:11 PM
Here is an example....

<a href="reports/Loan%20Documents/Bank%20Forms/Bank%20Loan%20Agreements/Commercial%20Loan%20Agreement.doc">Commercial Loan Agreement<br></a>

I have also tried....

<a href="http://fcfcintranet/reports/Loan%20Documents/Bank%20Forms/Bank%20Loan%20Agreements/Commercial%20Loan%20Agreement.doc">Commercial Loan Agreement<br></a>

But I cannot get either to work???

Any Thoughts???

sage45
05-20-2003, 08:07 PM
In both cases you are using a relative path... In both these cases, Word will not allow a save to the original location as it opens a copy onto the workstation into their temp folder (if it didn't then other people accessing the same file would get an "open as read only" option since the file would already be in use)... In order to allow for a save back to original location you must use an absolute path, i.e. - C:\MyDocuments\TheDocument.doc

Ofcourse, you would not be able to use long file names or long directory names(really sucks) but in order to find out the dos names you can drop to a dos prompt and run dir /x...

Ofcourse then you run into the situation of multiple users accessing the file will only allow one user to modify it...

HTH,

-sage-

JoshCrawford
05-20-2003, 08:20 PM
Whenever I start using the drive letter it give me a page cannot be displayed when I click the link for the document. I thought that would make the browser look at the local hard drive instead of the intranet server???

sage45
05-20-2003, 08:32 PM
You would have to use the drive letter as mapped... This would make it an absolute path...

Also, you would not be able to use long file names or long directory names(really sucks) but in order to find out the dos names you can drop to a dos prompt and run dir /x... I found this out, while I was testing, after I posted the first response...

-sage-

JoshCrawford
05-20-2003, 09:19 PM
OK, that works great. Thanks for the help. On a side note...I wanted to have the web page display the last modified date for the documents. I also wanted it to update automatically when the document is changed. Any Ideas???

sage45
05-20-2003, 09:24 PM
Can't do it natively... You would have to use an SSI or an ASP to grab the last modified information from the document to display...

-sage-

JoshCrawford
05-20-2003, 09:30 PM
Any idea where I could find an example? Not to good at writing programs/scripts from scratch but if I have something to go by I can usually figure it out. Thanks!

sage45
05-20-2003, 09:40 PM
I don't but I'm sure if you post in the SSI or ASP section of the forum you can find someone who might...

-sage-

SYP}{ER
05-20-2003, 10:23 PM
In PHP:

http://www.php.net/manual/en/function.filectime.php

Read that. It's just filectime("filename.ext"). Returns the unix timestamp which can then be formatted using date() ( http://php.net/date )

I don't think SSI is capable of including the last modified date of an external file; only the last modified date of the file being viewed.

giz
05-21-2003, 09:39 PM
Yuk!


Please do not use spaces in your filenames, and if possible, please use all lower case for the path and file names.

You can use dashes - or underscores _ or dots . in the filename to break up the words. Spaces do not work in some browsers and are not to be recommended at all.

pradeepg459
05-19-2009, 11:22 AM
Can i open an Msword document(empty.doc) through javascript in mozilla......


Urgent reply plz ..
Thanks in Adv...

Philip M
05-19-2009, 12:10 PM
Can i open an Msword document(empty.doc) through javascript in mozilla......


Urgent reply plz ..
Thanks in Adv...

Double posted - :( and you have already had an answer.