FP98: How FrontPage Handles Document Conversion to HTML

ID: Q194212


The information in this article applies to:


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:

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: 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:

How Are Converters Installed and Where Are They Located?

FrontPage, 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 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:
Q194531 FP98: Can't Use Proofing Tools or Text Converters

Additional query words: 98


Keywords          : fphtml 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: July 1, 1999