Expanded Browser and Device Support for Images in HTML Documents

How to:

Reference:

In prior releases of WebFOCUS, images and graphs were included in HTML and DHTML reports through the creation of a single Web archive file (.mht) containing the report and embedded images. Single Web archive files are only supported by Internet Explorer®. In Release 7.7.04 Reporting Server, a new encoding facility has been introduced to embed images and graphs directly into an HTML or DHTML .htm file. This encoding in the .htm files can be read by most non-Internet Explorer browsers and Internet Explorer 9. Internet Explorer 8 can only read small images less than 32K.

SET HTMLEMBEDIMG is the command designed to ensure that all WebFOCUS reports can be accessed from any browser or device. By default, it is set to AUTO which determines which encoding algorithm to use based on the browser of the client machine that submits the report request. If the browser is identified as an Internet Explorer browser, or if the browser is unknown (such as reports distributed by ReportCaster), WebFOCUS will continue to generate Web archive files (.mht). For all other browsers, WebFOCUS will encode the image into an HTML file (.htm).


Top of page

x
Syntax: How to Embed Images in HTML and DHTML Output Files
SET HTMLEMBEDIMG={OFF|ON|AUTO}

where:

OFF

Does not affect the default behavior. If HTMLARCHIVE is set ON, .mht files are generated.

ON

Encodes images within the .htm file.

AUTO

Determines how to handle images based on the browser from which the request was submitted. For requests submitted from an Internet Explorer browser, HTMLARCHIVE will be used to embed the images into an .mht file. For all other browsers, HTMLEMBEDIMG will encode the image information into an .htm file. If the browser is unknown, as in report requests submitted by ReportCaster, AUTO will use the HTMLARCHIVE setting that is in effect. AUTO is the default value.


Top of page

x
Reference: Usage Notes for SET HTMLEMBEDIMG

The new encoding algorithm that uses 64-bit encoding is not supported for Internet Explorer 6 and 7, and it is only supported for images less than 32K in size by Internet Explorer 8. For Internet Explorer 8 (and prior versions), Information Builders recommends continuing to use the .mht format generated by HTMLARCHIVE. In Internet Explorer 9 and non-IE browsers, the new algorithm is supported for images of any size.

Note: See the browser vendor information to confirm 64-bit encoding support.

To provide support for multiple browsers, Information Builders recommends using the AUTO setting to allow the appropriate type of file to be generated based on the user configuration, where it is known. The following table represents how HTMLEMBEDIMG interacts with HTMLARCHIVE across multiple browsers.

Browser

HTMLEMBEDIMG

HTMLARCHIVE

File Generated *

Internet Explorer

ON

ON

.HTM

ON

OFF

.HTM

OFF

ON

.MHT

OFF

OFF

.HTM

AUTO

ON

.MHT

AUTO

OFF

.HTM

Non-Internet Explorer

ON

ON

.HTM

ON

OFF

.HTM

OFF

ON

.MHT

OFF

OFF

.HTM

AUTO

ON

.HTM

AUTO

OFF

.HTM

Unknown

ON

ON

.MHT

ON

OFF

.HTM

OFF

ON

.MHT

OFF

OFF

.HTM

AUTO

ON

.MHT

AUTO

OFF

.HTM

* Note: For file extensions in the File Generated column:


WebFOCUS