Displaying the contents of MS Word Document on to the web

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Displaying the contents of MS Word Document on to the web

Postby bogasrikanth » 29. September 2008 19:12

Hi Friends,

I am having a word document with lot of formatting and images. I would like to display this content on the web so that it can serve as a user manual for the users.

Please tell me the way to read in this content and display on the web page. Looking forward your valuable help.

Thanks
sreekanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02

Postby Dave_L » 29. September 2008 20:34

I would convert it to a .pdf. I'm not sure if MS Word can do that, but I know that OpenOffice can.
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby bogasrikanth » 29. September 2008 22:01

Hi,

Thanks for the reply.

I want to do this from PHP. Can we do it ?

Srikanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02

Postby Dave_L » 29. September 2008 22:57

Well, MS Word can export a document as a web page (.html files and auxiliary files), although some formatting might be lost. You could link to that page from a PHP-generated page.

Personally, I prefer the .pdf option. That way, users can download the manual for offline viewing as well as view it online.
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby bogasrikanth » 29. September 2008 23:15

Hi Dave,

I dont want the user manual to be downloaded by the users ;-).

I wanted to generate these pages dynamically. I have written the user manual in word document, this can be easily converted in to pdf.

Here is a scenario:

A user wanted to view the usage of a method X. Then he clicks the hyper link for the method X. My PHP script running at the server should then get the pdf document for that method read it and send it back to the user viewing it. I hope you got my requirement now. :-)

How can I do it ? Please paste the code for that, if you have any.

Thanks
srikanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02

Postby glitzi85 » 29. September 2008 23:16

And why not directly export it as HTML? Word has this function (although the result is very ugly).

Edit: This will not prevent the user from printing your webpage into an PDF!

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby bogasrikanth » 29. September 2008 23:31

Ya... it looks very very bad, when I am saving it as a web page.


One more doubt. Can I refer to this web page in my <a href> tag ?


srikanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests