Jump to content

Get pages from word into webpage


Recommended Posts

Hi,

I am having some 100 pages of data in word document. I want these pages into webpage.

I want these on the webpage page by page ie.,

First page one will be displayed, when user clicks next page two will be displayed, and so on..

Is there any script or software for doing so...

please help me

Link to comment
Share on other sites

  • 2 months later...

I'm not a programmer by any means. This is very, very basic solution. Have you tried to do a simple 'iframe'. I'm sure there's some code someone can tell you that will 'pull' up a specific page in the word file. This will work if each of those 100 pages are each a separate word file. This will work, providing the user hasn't changed their system settings to force ms office documents to open outside of the browser.

<table ID="Table4">

<tr>

<td>My Document</td>

</tr>

<tr>

<td><A HREF="../Images/files/cad/check-in-drawing.doc" target="cwindow">word_page1.doc</A>Page 1</td>

<td><iframe name="cwindow" frameborder="0" width=700 height=550></iframe></td></tr>

</table>

Link to comment
Share on other sites

MS word has the option of saving documents as HTML web pages. Its really crude code generated but with trial and error you could probably get the result you want

One suggestion is save the info as a simple text file. In it i would have something like [page-break] as a self defined tag to tell me where to break the pages and would define a css document. Then run a php script to read the txt as far as [page-break] and write it out a page at a time until i had 100 html pages. This would be a simple solution for me and would probably not be the method I would use and also may be beynd your expertise, but its a start.

Link to comment
Share on other sites

MS word has the option of saving documents as HTML web pages. Its really crude code generated but with trial and error you could probably get the result you want

One suggestion is save the info as a simple text file. In it i would have something like [page-break] as a self defined tag to tell me where to break the pages and would define a css document. Then run a php script to read the txt as far as [page-break] and write it out a page at a time until i had 100 html pages. This would be a simple solution for me and would probably not be the method I would use and also may be beynd your expertise, but its a start.

thats kinda what i was thinking. but there are php modules that can read word docs so he wont even need to save them as txt.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...