Results 1 to 8 of 8
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word and htm (word xp 2002)

    If you press Alt+F9 to view field codes, do you see fields like this?

    { INCLUDEPICTURE "ServerShareFolderfilename.gif" * MERGEFORMAT d }

    I was able to save without Word 2000 changing all the images around. In Web Options... under Pictures, I ticked the option to "update paths." I don't know what other variables might be involved.

  2. #2
    New Lounger
    Join Date
    Apr 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word and htm (word xp 2002)

    Help....

    I have a document named appendix.doc with inserted pictures that point to .gif files on a server. In the Word these .gifs look fine. However, when I try and save back the Word document as .htm, the links to the .gifs on the server go away and are replaced by files named image1.gif, image2.gif , etc. in a local subdirectory named appendix_files. How can I save back a .doc file as .htm and not have the original .gif links replaced ?

    Thanks.

  3. #3
    New Lounger
    Join Date
    Apr 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word and htm (word xp 2002)

    I am having trouble copying the htm code to this message, but I get the same code you do except the gif is name image001.gif instead of the filename on the server.
    There is some kind of baloney occuring here and I can't figure it out.

    Thanks.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word and htm (word xp 2002)

    In your original Word document, what did the INCLUDEPICTURE field look like?

  5. #5
    New Lounger
    Join Date
    Apr 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word and htm (word xp 2002)

    Here is what I get....
    Attached Files Attached Files

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word and htm (word xp 2002)

    Try opening your .doc again, turning off this option under Tools*>*Options...*>*General*>*Web*Options..., and saving as HTML again.
    Attached Images Attached Images

  7. #7
    New Lounger
    Join Date
    Apr 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word and htm (word xp 2002)

    I did try your suggestion. Take the original word document, check off the option you suggest (check off links on save)/and save back as html as web page filtered. This turkey still creates a separate folder with all the image001.gif, etc. file contained therein. Go figure... (;-

    Any additional suggestions would be appreciated.

    thanks

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word and htm (word xp 2002)

    The HTML filters seem to change in every version of Office, so it could be that mine works differently because I'm still using Word 2000. Trying to work around the filter with changes to the .DOC is difficult, because there's no way to pass pure HTML through it (the tags will get converted to text, and you won't get the "benefit" of Word adding sizing attributes to the tag). On the other hand, you could write a macro that would read the .DOC and restore the original paths to the saved .HTM file. I would be making a few assumptions in coding this... first, I would assume that all images are "inline" - not floating in the drawing lawyer - and secondly that Word's HTML filter numbers them in the order they appear in the document. If that's the case, the pseudocode for the macro would be something like this:

    <pre>- With the DOC file open and active,
    - Open the HTM file as plain text so you can manipulate the <IMG> tags
    - Start with the first field code in the DOC file and check every one
    - If it's an INCLUDEPICTURE, then
    - read out the path
    - find/replace the image1.gif file name with the "real" file name
    - increment your counter, so that image2 gets replaced next, etc.
    - Save and close the HTM file</pre>

    It's a kludge, but as long as you always maintain the DOC file as an up-to-date version and spin off HTM files only as copies, it would work.

    Hopefully someone else will come up with a better solution. I wonder if MS might have changed Word 2002's INCLUDEPICTURE field switches to provide some other indication that the paths should not be changed?

Posting Permissions

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