Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FP2000: How FrontPage Handles Document Conversion to HTML


View products that this article applies to.

Summary

FrontPage can convert into HTML the following: pasted text, inserted file segments in HTML pages, and entire files from several formats. This article presents an overview of how FrontPage handles document conversion to HTML and answers the following questions:
  • When does FrontPage attempt to convert a file to HTML?
  • Why does the conversion process show two stages?
  • How does FrontPage determine which converter to run?
  • How are converters installed and where are they located?

↑ Back to the top


More information

When Does FrontPage Attempt to Convert a File to HTML?

FrontPage attempts to convert a file to HTML when you do any of the following:
  • Paste text from a non-HTML document.
  • On the Insert menu in FrontPage, click File and select a non-HTML document.
  • Drag a non-HTML document to FrontPage.

Why Does the Conversion Process Show Two Stages?

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

How Does FrontPage Determine Which Converter to Run?

When FrontPage imports a file, the algorithm for determining which converter will be run is as follows:
  1. 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 determines whether it understands the format. The first converter that understands the format is then run to convert the file to RTF format.
  2. 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.
  3. If FrontPage still cannot find a converter to open the file, it displays the Open File As dialog box with buttons you can click to open the file as RTF, HTML, or text.

How Are Converters Installed and Where Are They Located?

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

↑ Back to the top


Keywords: KB205684, kbinfo

↑ Back to the top

Article Info
Article ID : 205684
Revision : 1
Created on : 5/2/2002
Published on : 5/2/2002
Exists online : False
Views : 215