473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Link directly to MS Word document

Who can help me? I want to create a link(href) which opens an .doc or an
..xls directly in MS Word or MS Excell and not in IE so that I don't have to
save the document first en open it from Explorer.

I asked our webmaster at the office but he didn't know the answer so I hope
you can help me.

Greetz

Willem
Aug 13 '05 #1
8 23591
"W. de Jonge" wrote:

Who can help me? I want to create a link(href) which opens an .doc or an
.xls directly in MS Word or MS Excell and not in IE so that I don't have to
save the document first en open it from Explorer.

I asked our webmaster at the office but he didn't know the answer so I hope
you can help me.


Upload the Word or Excel file to the Web server in binary mode.
Create a standard link of the form <a href="xxx">yyy</a>. The xxx
should have the .doc or .xls extension found on the Word or Excel
file.

Your Webmaster might have to put an entry in the Web server's
..htaccess file for doc and xls. For that, he should consult the
documentation for the server software. However, I would expect
that the standard .htaccess file that came with the server already
has such entries if they are needed.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Aug 13 '05 #2
On Sat, 13 Aug 2005 08:14:07 -0700, David Ross <no****@nowhere.not>
wrote:
Upload the Word or Excel file to the Web server in binary mode.


Hmm... Don't we upload _everything_ in binary mode these days ?

What happens to "ftp ASCII upload" in this world of XML, UTF-16 etc. ?
Should we be worrying about this ?

And doesn't everyone just have broadband these days and more bandwidth
than the whole of IBM did until a few years ago,
--
Cats have nine lives, which is why they rarely post to Usenet.
Aug 13 '05 #3
With neither quill nor qualm, W. de Jonge quothed:
Who can help me? I want to create a link(href) which opens an .doc or an
.xls directly in MS Word or MS Excell and not in IE so that I don't have to
save the document first en open it from Explorer.


I don't know, but is your nickname "Shrimp"?

--
Neredbojias
Contrary to popular belief, it is believable.
Aug 14 '05 #4
Dan
W. de Jonge wrote:
Who can help me? I want to create a link(href) which opens an .doc or an
.xls directly in MS Word or MS Excell and not in IE so that I don't have to
save the document first en open it from Explorer.


That is not something you have complete control over; it's up to the
end-user's configuration. Your task is to ensure that the documents in
question are served with a proper MIME type indicating what sort of
data they are; then the user's system might display them inline if
their browser supports it, launch an external helper application, or
prompt to save it.

The end user might just not have *anything* from Microsoft on his/her
system, so it could be that the use of proprietary Word and Excel
formats results in the site being completely inaccessible to him/her.

--
Dan

Aug 14 '05 #5
Andy Dingley wrote:

On Sat, 13 Aug 2005 08:14:07 -0700, David Ross <no****@nowhere.not>
wrote:
Upload the Word or Excel file to the Web server in binary mode.


Hmm... Don't we upload _everything_ in binary mode these days ?

What happens to "ftp ASCII upload" in this world of XML, UTF-16 etc. ?
Should we be worrying about this ?

And doesn't everyone just have broadband these days and more bandwidth
than the whole of IBM did until a few years ago,


I still upload HTML and CSS files in ASCII mode. I also upload my
UNIX scripts (KSH coded in Wordpad) and ASCII files (TXT) in ASCII
mode. The reason is that I want these files to reside on my Web
server (a UNIX system) with UNIX-type end-of-line (EOL) markings
(LF), not PC-Windows-type EOL markings (CR/LF). FTP converts the
EOL markings from the source type to the destination type when
doing ASCII transfers. This allows me to edit the files on the
server (via a secure Telnet session) using UNIX tools.

I still use a dial-up connection to the Internet. Late last year,
I saw a news item that said almost half of those in the U.S. who
access the Internet from home do so via dial-up modems. This
number might actually increase soon, now that the courts have ruled
that phone and cable TV companies can charge independent ISPs
retail rates for broadband. This means that, if I want broadband,
I must either use Adelphia or SBC for my ISP; or I must pay them
for an unused ISP account merely to get broadband to my current
ISP. I like my current ISP and don't want to change. But I also
don't want to pay for two ISP accounts to use only one.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Aug 14 '05 #6
W. de Jonge wrote:
Who can help me? I want to create a link(href) which opens an .doc or an
.xls directly in MS Word or MS Excell and not in IE so that I don't have to
save the document first en open it from Explorer.

I asked our webmaster at the office but he didn't know the answer so I hope
you can help me.

This depends on both the server and the browser. The server must send
the document with a appropriate "Content-Type" header entry, such as
application/msword for Word documents. Then your browser must have a
corresponding entry to call the appropriate application to view the document.
For instance, in Mozilla go to Edit: Preferences...: Navigator:
Helper_Applications to see what is configured there.
Firefox just asks you what application to use for an unknown file type.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Aug 14 '05 #7
for a file download to be forced, you are going to have to send headers
before the file is sent out. you will need ASP or PHP. taken from
http://www.php.net/manual/en/function.header.php
<?php
// We'll be outputting a PDF
header('Content-type: application/msword'); //or application/vnd.ms-excel

// It will be called downloaded.doc
header('Content-Disposition: attachment; filename="downloaded.doc"');

// The PDF source is in original.doc
readfile('original.doc');
?>

this will allow the file to be opened as an option.
"W. de Jonge" <w.********@hotmail.com> wrote in message
news:48***************************@cache30.multika bel.net...
Who can help me? I want to create a link(href) which opens an .doc or an
.xls directly in MS Word or MS Excell and not in IE so that I don't have
to save the document first en open it from Explorer.

I asked our webmaster at the office but he didn't know the answer so I
hope you can help me.

Greetz

Willem

Feb 3 '06 #8
Dan
Jim Michaels wrote:
for a file download to be forced, you are going to have to send headers
before the file is sent out. you will need ASP or PHP. taken from
http://www.php.net/manual/en/function.header.php
That still won't *force* anything, only suggest it.
<?php
// We'll be outputting a PDF
header('Content-type: application/msword'); //or application/vnd.ms-excel
If you're outputting a PDF, then it wouldn't make very much sense to
send the content-type header for MS Word or Excel, would it?
"W. de Jonge" <w.********@hotmail.com> wrote in message
news:48***************************@cache30.multika bel.net...


Don't top-post.

--
Dan

Feb 4 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Streater | last post by:
I have, as it might be, this in a frame: <a href="mystuff.html">Click here</a> When I click the link, it loads mystuff.html into the frame, whereas what I want is to replace the whole window...
26
by: Harrie | last post by:
Hi, After Brian mentioned the use for <link rel=..> for navigational purposes in another thread, I've been looking into it and found that HTML 3.2 has two other recognized link types than HTML...
0
by: R. van Lieshout | last post by:
Who can help me? I want to create a link(href) which opens an .doc or an ..xls directly in MS Word or MS Excell and not in IE so that I don't have to save the document first en open it from...
3
by: intl04 | last post by:
Is it possible to create a Word form as the data entry form for an Access database? I didn't see any reference to this possibility in my Access books, so I'm sorry if this is a question that is...
4
by: Lisa | last post by:
Hi - I'm able to open excel workbooks and word documents, but I can't seem to copy excel charts, named ranges, etc. to a word document. Anyone know of good reference material in this area? What...
1
by: JJ | last post by:
I have an app and on one page I have Link buttons that will fire up a word doc or at least thats my goal. When someone clicks on a link button I need to find a word doc on server where app resides....
14
by: hgraham | last post by:
Hi, I'm trying to understand how to work the dom, and all I'm trying to do is insert a link right before another link in the html based on it's href value. This isn't a real world example - I'm...
0
by: tshad | last post by:
I have set up an upload of doc and pdf files which works fine. If I open up the uploaded files in Word it looks exactly like the my originals. If I open up the files from my web page so that...
23
by: Stanimir Stamenkov | last post by:
I want to find out whether the following usage of the "Bookmark" link type is o.k. An example could be seen at <http://www.geocities.com/stanio/more/horoskop.html>. The text is in Bulgarian and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.