Open microsoft Word

Is there any way to open un microsoft word file from a link html.? I am trying this , but always that the user click on the link . it start to download. I need thar open then microsoft office which is installed localy
I have tried with this

   header('Content-type: application/msword');
  header("Content-Length: ".filesize($arquivo)); 
  header("Content-Disposition: attachment; filename=".basename($arquivo)); 
  readfile($arquivo);

hello

try to use google docs to do this

https://docs.google.com/gview?url=http://domain.xxx/path_to_file/file_name.docx&embedded=true%20width=800px%20height=400px

Thanks, but I need to open Microsoft Word locally with the document from the web.
I

maybe you can use JavaScript, I don’t know if will work, it depends on security / browser

should work using:

<a href='ms-word:ofe|u|http://domain.xxx/path_to_file/file_name.docx'>Edit</a>

source:

1 Curtida

It’s perfect. Thanks