Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to display the content of word document into iFrame?

    I want to show the content of word document in the iFrame and then i want to edit it and save the content into a database.

    So if any one knows how to insert a word document's content into the iFrame means, please intimate me.

    thank you

  • #2
    New to the CF scene
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I need some more information to be able to help you fully. Which programming languages are you familiar with? Is it you that put the word-file there or should a user be able to upload it?

    If it's you you can just save it in the HTML-format in word and just put it in the iframe. That's the easiest way, but if users should be able to upload files it becomes much more difficult, you'll have to use Words COM-object. For PHP you can find a bit information about how you use it here: http://www.phpbuilder.com/columns/yu...24.php3?page=1. There is also a class that makes handling of the COM-object easier: http://www.phpclasses.org/browse/package/3553.html.

    With the help of the COM-object you'll have to in some way convert it to HTML.

    When it comes to showing and editing of the document there will surely be many limitations of the formatting, you can't count on that it will look the same.

    What I don't understand why you want it in an iframe, it can be an easy way to display it, but not to edit.

    To edit HTML visually you can use FCKeditor och TinyMCE. They provide some basic formatting of the text and images.

    Then you just get the users input and save it to the database the usual way.

    I don't know exactly what you want to do, but I would really recommend that you save or tell the users to save the word document in HTML, it makes it much more easy.

    Explain a bit more and I perhaps can help you with some code or more advice.
    Last edited by kacior; 11-10-2007 at 11:24 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •