Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > Re: Link direct...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 355 of 447
Post > Topic >>

Re: Link directly to MS Word do***ent

by "Jim Michaels" <jmichae3@[EMAIL PROTECTED] > Feb 3, 2006 at 03:48 PM

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.de.jonge@[EMAIL PROTECTED]
> wrote in message 
news:4832a$42fdf95a$d47fab21$18030@[EMAIL PROTECTED]
> 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 do***ent 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
>
>
 




 7 Posts in Topic:
Link directly to MS Word document
"W. de Jonge" &  2005-08-13 15:45:45 
Re: Link directly to MS Word document
David Ross <nobody@[EM  2005-08-13 08:14:07 
ASCII upload? Was: Link directly to MS Word document
Andy Dingley <dingbat@  2005-08-13 21:49:25 
Re: ASCII upload? Was: Link directly to MS Word document
David Ross <nobody@[EM  2005-08-14 11:45:09 
Re: Link directly to MS Word document
Neredbojias <neredboji  2005-08-13 19:13:02 
Re: Link directly to MS Word document
Jim Moe <jmm-list.AXSP  2005-08-14 16:16:59 
Re: Link directly to MS Word document
"Jim Michaels"   2006-02-03 15:48:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 16:15:50 CST 2008.