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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Location
    Victoria BC Canada
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Hyperlink from html to specific location in MSWord doc

    This could be partically an MSWord questions as well as a coding question. I have been given a MSWord 2007 document that is fairly lengthy and has a generated table of contents. This document needs to be posted to the web and a html table of contents created that links to specific locations within the MSWord document. I have tried inserting bookmarks into the MSWord doc and linking to those but it doesn't seem to work.

    Code:
    <a href="draft.docx#intro">INTRODUCTION</a>
    Is there something special I need to do to make this work? Thanks in advance for your help.

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    310
    Thanks
    86
    Thanked 3 Times in 3 Posts

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Location
    Victoria BC Canada
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I learned about different syntaxes from this link, but alas, not what I need to know to make my links work. I need to link from a html page to specific location in a MSWord doc, this link discusses linking the other way ... from MSWord to html. Thanks anyway.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,680
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    Well, I think this isn’t possible. How would the web server/HTML document know where the word document is stored on the local machine? How would the website know if there is a program to open Word documents installed on the local machine at all? How would the website know which operating system is used at all? File paths look different on Windows, Mac OS, and Linux (apart from the already mentioned fact that Word is a Microsoft proprietary format and MS Word isn’t necessarily installed by default (if at all available) in other OSs than Windows. And I haven’t even covered security issues: If every average website could open files on your computer what evil could (and would) people do with this possibility?

    In a nutshell: forget it.

  • #5
    New to the CF scene
    Join Date
    Sep 2009
    Location
    Victoria BC Canada
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You're probably right about that, I'm starting to think this as well, I've been searching for an answer everywhere to no avail. And I'm the first one to take advice from people more knowledgeable about coding than me. So thanks for this. The reason for wanting to use a MSWord document is so that the document can be updated and tweaked for the next few months, but still be available for other to view. I'm thinking we'll have to go with the .pdf document as I first thought even though it will make updating more work intensive.

    I've been very impressed with this forum, my questions are taken seriously and answered quickly and I'm most appreciative. Thanks again.

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by allegro View Post
    You're probably right about that, I'm starting to think this as well, I've been searching for an answer everywhere to no avail. And I'm the first one to take advice from people more knowledgeable about coding than me. So thanks for this. The reason for wanting to use a MSWord document is so that the document can be updated and tweaked for the next few months, but still be available for other to view. I'm thinking we'll have to go with the .pdf document as I first thought even though it will make updating more work intensive.

    I've been very impressed with this forum, my questions are taken seriously and answered quickly and I'm most appreciative. Thanks again.
    openoffice, and I'm sure msoffice, documents can be exported as (x)html with a simple click. Why don't you use this to do what you want? The sincronisation between doc and webpages is not a problem in my opinion.
    As a alternative look over google documents.

    best regards


  •  

    Posting Permissions

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