How can i include a word document in my website? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

How can i include a word document in my website?

23rd Aug 2017, 10:17 AM
Elizabeth muli
Elizabeth muli - avatar
15 Answers
+ 6
Use Django... file.read, file .open and so on... Hope you get the point. Django is just py but used in web
29th Aug 2017, 7:11 PM
Krafty Coder
Krafty Coder - avatar
+ 5
thanks
29th Aug 2017, 7:12 PM
Elizabeth muli
Elizabeth muli - avatar
+ 4
thanks alot
25th Aug 2017, 7:05 PM
Elizabeth muli
Elizabeth muli - avatar
+ 3
@milan.k I tried that but it's not working
25th Aug 2017, 6:37 PM
Elizabeth muli
Elizabeth muli - avatar
+ 3
the link
25th Aug 2017, 6:39 PM
Elizabeth muli
Elizabeth muli - avatar
+ 3
that's what I have <a href="puritan Ltd html" target="_blank">Catalogue </a>
25th Aug 2017, 6:48 PM
Elizabeth muli
Elizabeth muli - avatar
+ 2
You need to have valid url in href or if the document is on same server as html page path to document... like "/document-name.doc"... No spaces in href.
25th Aug 2017, 7:02 PM
milan.k
+ 2
You don't need target blank since word can't be opened in browser
25th Aug 2017, 7:04 PM
milan.k
+ 2
You're welcome
25th Aug 2017, 7:06 PM
milan.k
+ 2
include is not for words it is just for php and another web codes , to set a word document to your website you can set the link to download it or use an word reader module ... search for it there are modules.
27th Aug 2017, 7:00 AM
Hallo Srood
Hallo Srood - avatar
+ 1
To link word document you need to upload it somewhere and then use its address in <a> tag. To show the content of actual document upload it in Google docs and then call the doc url with <iframe>.
25th Aug 2017, 6:34 PM
milan.k
+ 1
What exactly? Link or view in browser?
25th Aug 2017, 6:38 PM
milan.k
+ 1
<a href="http://url-of-a-word-document">some name</a>
25th Aug 2017, 6:42 PM
milan.k
+ 1
When you click on this it should offer you to save a document.
25th Aug 2017, 6:42 PM
milan.k
0
in php you can use file tag with it's various operations like fopen, fcopy, fread, fclose... search this on web and implement
23rd Aug 2017, 4:29 PM
Mohit Mehta
Mohit Mehta - avatar