Results 1 to 11 of 11
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    savesas HTML creates folders (2000) (Word 2000)

    Is it me or ....?

    I had a lovely time saving documents as html files from Word97 - saved the file with images, FTP'd the lot to a server. No sweat, as we say in the trade.

    Then I installed Office XP. No sweat, everything fine.

    Then, for client requirements, I installed Office 2000, and suddenly my saveAs HTML is populating my hard drive with folders containing images, that is, the saveas html code seems (in 2000, midway between 97 and XP) to insist on a folder structure, which complicates things on my server, since FTP will require me to delete files in individual folders before I can take down those folders. In short, the folder structure is a pain.

    Have I missed some setting somewhere that would inhibit the folder structure? I've recorded (below) the code from the saves (there appear to be two items in the 2000 File menu), but can see no evidence of a switch or parameter that would inhibit the folder structure.

    Word XP version

    <pre>Sub Macro1()
    Attribute Macro1.VB_Description = "Macro recorded 2/28/2006 by Chris Greaves"
    Attribute Macro1.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Macro1"
    '
    ' Macro1 Macro
    ' Macro recorded 2/28/2006 by Chris Greaves
    '
    ChangeFileOpenDirectory "C:BLOTTER20060228"
    ActiveDocument.SaveAs FileName:="Doc3.htm", FileFormat:=wdFormatHTML, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
    ActiveWindow.View.Type = wdWebView
    End Sub</pre>


    Word 2000 versions

    <pre>Sub Macro1()
    Attribute Macro1.VB_Description = "Macro recorded 2/28/2006 by Chris Greaves"
    Attribute Macro1.VB_ProcData.VB_Invoke_Func = "N.NewMacros.Macro1"
    '
    ' Macro1 Macro
    ' Macro recorded 2/28/2006 by Chris Greaves
    '
    ChangeFileOpenDirectory "B:"
    ActiveDocument.SaveAs FileName:="Doc1.htm", FileFormat:=wdFormatHTML, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
    ActiveWindow.View.Type = wdWebView
    End Sub
    Sub Macro2()
    Attribute Macro2.VB_Description = "Macro recorded 2/28/2006 by Chris Greaves"
    Attribute Macro2.VB_ProcData.VB_Invoke_Func = "N.NewMacros.Macro2"
    '
    ' Macro2 Macro
    ' Macro recorded 2/28/2006 by Chris Greaves
    '
    ActiveDocument.SaveAs FileName:="Doc2.htm", FileFormat:=wdFormatHTML, _
    LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _
    :="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
    SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
    False
    ActiveWindow.View.Type = wdWebView
    End Sub</pre>


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: savesas HTML creates folders (2000) (Word 2000)

    Word 2002 (aka XP) also creates a subfolder if the .htm document contains images, and I thought Word 97 did so too, but my memory of that version has blurred. Are you sure you saved a document containing images each version?

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    Hans, thanks for the fast-back, if that's what it is.
    > Are you sure you saved a document containing images each version?
    Yes. In particular since 1998 I've has a vermicomposting site with photos of various designs of composter, in some cases BMP/JPG diagrams carefully crafted from paintbrush. I can't recall seeing this folder nonsense. I have a hard drive somewhere with Win98/Off97 and I'll slide it in tonight and check, just to make sure.

    I think I'd have remembered the folders; they are such a pain to delete using WS-FTP-LE.

    I must too check my test on XP. (I'm using a new KVM switch to flip machines and can easily get confused.....). I suspect I did NOT save a DOC with images.
    More later today.

  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: savesas HTML creates folders (2000) (Word 2000

    Word's HTML is rather nasty. You could try using the Filtered HTML format in Word 2002, and the export filtered HTML Add-in for Word 2000. But neither addresses this issue.

    When you save a "complete" web page from IE, you get a special folder that Windows likes to manage as an appendage of the main HTML file: if you delete the HTML file, the folder also gets deleted automatically. You can change this behavior in Windows Explorer under Tools>Folder Options..., but it seems to be the way Microsoft thinks life is best. So I'm not surprised that Office follows the same scheme of grouping all the resources into a subfolder. I'm not aware of any workarounds.

  5. #5
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Wellington, New Zealand
    Posts
    143
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: savesas HTML creates folders (2000) (Word 2000

    In Word XP there's an "Organize supporting files in a folder" option that's available via Tools | Options | General | Web Options | Files. Is there an equivalent Word 2000 option that you could use?

  6. #6
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    Thanks, William, yes there is. Looks identical 2000/2002.
    (I have still to resurrect my Win98/Office997 drive this weekend and test it there).
    Attached Images Attached Images
    • File Type: jpg 1.JPG (36.9 KB, 0 views)

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    > Word's HTML is rather nasty.
    Thanks, and yes, I quite agree. OTOH it's a very fast way of sending a concept to/from a client or contractor.
    Willaim's suggestion has merit; I'll be playing with that in 2000 & 2002 once the work day is done (sigh!), and need to reformat a 6GB drive to reinstall 98SE/97 before checking out my retro-gear this weekend.
    I plan a full report to be on your desk by Monday 9 a.m. (grin!)

  8. #8
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    Apologies to all for the delay in responding. Life.

    1) Win98SE/Office97: Word saves HTML format in a flat manner, no hint of folders when saving a Word document (with an embedded JPG) as an HTML.
    2) WinXP/Office2000: The Tools, Options, General, Web Options, Files, "Organize supporting files in a folder" sets the switch (see below).
    3) WinXP/OfficeXP: The Tools, Options, General, Web Options, Files, "Organize supporting files in a folder" sets the switch (see below).

    (below). I got confused. In the end it seems that turning the switch OFF does not stick. I turned it off, saved a DOC as html, saw no folder (good!), powered off and went to bed. Next morning opened a DOC, saved as HTML and got a folder. What?!!???!!!! Checked the setting - still turned on.

    Now I load Word by a Batch file, saving the old Normal.dot and copying in my secure Normal.dot; I reasoned that maybe the setting was being held in Normal.dot, so my copy was "restoring" the setting, but I can't see that it is. Turning the switch OFF and then re-loading Word sees it turned on, with no prompt-to-save-normal-dot nor nothing.

    It may well be that MSoft has either (1) goofed in programming this feature (Unlikely?) or (2) decided omniprescently that folder proliferation is A Good Thing (about as likely as option (1)?).

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    You could include the line

    Application.DefaultWebOptions.OrganizeInFolder = False

    in the AutoExec macro in your Normal.dot.

  10. #10
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    > You could include the line

    Quite so.
    How aggravating to an end-user, though. You and I can shrug and say "sigh!", but pity the poor e-u!
    OTOH perhaps I should Laud MicroSoft for driving end-users into the Real World of programmers .......

  11. #11
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: savesas HTML creates folders (2000) (Word 2000

    (later). I could, it's true, but in WinXP/Office2000 it doesn't seem to do me much good. In desperation I grabbed the code to inhibit on-the-fly (attached). The crucial line seems to be <pre> .OrganizeInFolder = False</pre>

    imemdiately before the SaveaAs.
    Attached Files Attached Files

Posting Permissions

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