| Posted by Jim Michaels on 02/04/06 01:48 
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@hotmail.com> wrote in message
 news:4832a$42fdf95a$d47fab21$18030@cache30.multikabel.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
 >
 >
  Navigation: [Reply to this message] |