FP: How FrontPage Handles Document Conversion to HTML

Last reviewed: March 18, 1998
Article ID: Q160833
The information in this article applies to:
  • Microsoft FrontPage 98 for Windows
  • Microsoft FrontPage 97 for Windows with Bonus Pack

SUMMARY

FrontPage can convert pasted text, inserted file segments in HTML pages, or entire files from several formats to HTML. This article presents an overview of how FrontPage handles document conversion to HTML and answers the following questions:

   When will FrontPage attempt to convert a file to HTML?
   Why does the conversion process show two stages?
   How does FrontPage decide which converter to run?
   What Formats can FrontPage convert to HTML?
   How are converters installed and where are they located?

MORE INFORMATION

When Will FrontPage Attempt to Convert a File to HTML?

FrontPage will attempt to convert a File to HTML when you do any of the following:

  • Paste text from a non-HTML document
  • Click File on the Insert menu in FrontPage Editor and select a non- HTML document
  • Use a drag and drop operation. Using the right mouse button, drag a non-HTML document to FrontPage Explorer. When you release the mouse button, click "Copy Here as Web Format" on the shortcut menu.

Why Does the Conversion Process Show Two Stages?

FrontPage first converts documents from their native format to Rich Text Format (RTF), and then it converts the RTF files to Hypertext Markup Language (HTML). If the incoming file is already in HTML format or in simple text, no converter is run. If the incoming file is RTF only, the RTF to HTML converter is run.

How Does FrontPage Decide Which Converter to Run?

When FrontPage imports a file, the algorithm for determining which converter will be run is as follows:

   First the conversion routine looks at the extension of the file.
   For each converter registry entry that matches the extension of the
   file, that converter's entry point for the IsFormatCorrect routine
   is run. This routine reads the first few bytes of the incoming file
   and decides if it understands the format. The first converter that
   understands the format is then run to convert the file to RTF
   format.

   If FrontPage is unable to locate a converter that understands the
   file based on its extension, this procedure is repeated for each
   converter registry entry regardless of the file's extension.

   If FrontPage still can't find a converter to open the file, it will
   display the "Open File As" dialog box with buttons you can click to
   open the file as RTF, HTML, or text.

What Formats Can FrontPage Convert to HTML?

FrontPage installs RTF converters for the following formats:

  • Microsoft Excel Worksheet (.xls, .xlw)
  • Word (Asian versions) 6.0/95 (.doc)
  • Word 2.x for Windows (.doc)
  • Word 4.0/5.1 for Macintosh (.mcw)
  • Word 6.0/95 for Windows&Macintosh (.doc)
  • Word 97 (.doc)
  • WordPerfect 6.x (.wps, .doc)
  • Works 3.0 for Windows (.wos)
  • Works 4.0 for Windows (.wps)

These converters convert from the formats above to RTF format. FrontPage will also install the converter to convert a file from RTF to HTML format:
  • HTML Document (.html, .htm, .htx, .asp)

How Are Converters Installed and Where Are They Located?

FrontPage and Office 95 and Office 97 and other Microsoft programs use the same location for shared converters (and the same registry keys to point at these converters), installing or uninstalling any of these programs may change the versions of the converters that you are running.

NOTE: The FrontPage 1.1 "RTF to HTML" converter (Rtf2html.dll) is not included with FrontPage 97 or 98 for Windows.

FrontPage Setup does not treat converters as shared components. For information about problems that may occur as a result of this behavior, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q160226
   TITLE     : FP: Can't Use Proofing Tools or Text Converters


Additional query words: 97 98
Keywords : fphtml kb3rdparty kbinterop kbdta
Version : windows:97,98
Platform : WINDOWS
Hardware : x86
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.