Forum Home
Press F1
 
Thread ID: 29809 2003-02-03 20:59:00 HTML code garyasta (1151) Press F1
Post ID Timestamp Content User
118007 2003-02-03 20:59:00 I use Dreamweaver 4 and Word 97. I would like to convert a Word newsletter document to html to include it on my website. However, when I try to convert to html, I only achieve part of the transition. I have tried saving as html document and as edit>select all>save as, to no avail.

Has anyone any ideas?

I also want to use an imported Font as the title/letterhead to speed up loading instead of using an image file to get the required result. I have placed the font in Dreamweaver 'assetts" and in each folder for the site but it appears not to load.

Gary
garyasta (1151)
118008 2003-02-04 00:44:00 Unnecessary to Select All - use File -> Save As
Save each document individually

If still a problem - remove and reinstall Word and retry
Merlin (503)
118009 2003-02-04 01:25:00 A couple of things.

Word will convert files to HTML but sometimes it won't do it very well. Particularly if the file has columns in it ("massive blowout" is the phrase that springs to mind).

A few years back I tried to use Publisher to save a complex page to HTML. It chose to group all the headings at the end (and threw in a few other foul ups whilst it was at it). What made it harder was that the headings were originally white text on a black background. Putting them at the end created white on white... took a while to find them. Word has similar issues.

Fonts. You can use any font you like in an HTML page. The only minor problem is that for many fonts you may be the only person who can see them. The font tag says "go look on the computer on which this file is viewed for this font. If it is installed use it, if not use the default font". This is why most web designers stick to a limited tried and true set of fonts and use images for the fancy stuff.

How to solve your problem? There are a few ways:
1. Leave it as a Word file realising that only those who have Word or a Word viewer installed can read it.
2. Recreate the page in Dreamweaver
3. Use a program such as Adobe Acrobat to turn it into a .pdf

First way is quick and dirty, 2nd way is painstaking, 3rd way costs money.

A 4th method is to simplify future newsletters so that they will convert easily.
Heather P (163)
118010 2003-02-04 04:20:00 Cleaning up Microsoft Word HTML

In Dreamweaver, you can open or import documents saved by Microsoft Word as HTML files, then use the Clean Up Word HTML command to remove the extraneous HTML code generated by Word . The code that Dreamweaver removes is primarily used by Word to format and display documents in Word and is not needed to display the HTML file . Retain a copy of your original Word ( . doc) file as a backup, because you may not be able to reopen the HTML document in Word once you've applied the Clean Up Word HTML feature . The Clean Up Word HTML command is available for documents saved as HTML files by Word 97 or later .

To clean up Word HTML:

1 In Microsoft Word, save your document as an HTML file .

2 Open the HTML document in Dreamweaver using either of the following methods:
Choose File > Import > Import Word HTML and select a file to open .
Dreamweaver opens the file and then automatically opens the Clean Up Word HTML dialog box .
Choose File > Open and select a file to open .
An HTML Corrections log file is automatically generated if Warn when Fixing or Removing Tags is selected in HTML Rewriting preferences . This is not part of the Clean Up Word HTML feature . Click Continue to exit the dialog box . Then, in Dreamweaver, choose Commands > Clean Up Word HTML .

3 With either of these methods, there may be a slight delay while Dreamweaver attempts to determine which version of Word was used to save the file . If Dreamweaver is unable to determine this, select the correct version using the pop-up menu .

4 Choose which options the Clean Up Word HTML feature should use . The Basic tab displays the following options:
Remove all Word Specific Markup removes all Word-specific HTML, including XML from html tags, Word custom meta data and link tags in the head of the document, Word XML markup, conditional tags and their contents, and empty paragraphs and margins from styles . You can select each of these options individually using the Detailed tab .
Clean up CSS removes all Word-specific CSS, including inline CSS styles when possible (where the parent style has the same style properties), style attributes beginning with "mso," non-CSS style declarations, CSS style attributes from tables, and all unused style definitions from the head . You can further customize this option using the Detailed tab .
Clean up <font> Tags removes HTML tags, converting the default body text to size 2 HTML text .
Fix Invalidly Nested Tags removes the font markup tags inserted by Word outside the paragraph and heading (block-level) tags .
Set Background Color allows you to enter a hexadecimal value to set the background color of your document . If you do not set a background color, your Word HTML document will have a gray background . The default hexadecimal value set by Dreamweaver is white .
Apply Source Formatting applies the source formatting options you specify in HTML Format preferences and SourceFormat . txt to the document .
Show Log on Completion displays an alert box with details about the changes made to the document as soon as the cleanup is finished .

5 Click OK .

Depending on the size of your document and the number of options selected, it may take several seconds to complete the cleanup . The preferences you entered are automatically saved as the default Clean Up Word HTML settings .
johnno (3083)
1