THIS IS OBSOLETE!

GetHTML Method

Generates the HTML tags to represent the barcode.

Syntax

object.GetHTML moduleWidth, height, shortBarHeight, style

Parameters

object

The Barcode Active Server Component

moduleWidth

Numeric value indicating the width of a barcode module in pixels. The width of a barcode module is the same as that of the thinnest bar. So this is effectively a scale factor for scaling the barcode; 1 will be no scaling (minimum width is used), 2 twice the minimum width, etc. The "minimum width" does not guarantee the printed barcode to be scannable, depdending on the printer resolution.

height

Numeric value indicating the height of the barcode in screen pixels.

shortBarHeight

Numeric value indicating the height of the short bars of the barcode in screen pixels. If the barcode type supports only a single barcode height, this must be the same as the height parameter.

style

Numeric value. Must be 0 currently.

Return Value

A string composed of a sequence of tags rendering the barcode.

Remarks

This method is obsolete, superseded by GetHTML2, in order to work around an image scaling bug in Netscape Communicator v4.5x.

This method generates a sequence of <IMG> tags, which use ForeImageURL and BackImageURL and the image SRC. If the default values ("black.gif", "white.gif") of these two properties are not changed, you must have thse two files copied to the directory of the ASP file using this Barcode Active Server component.

The moduleWidth is a scale factor for rendering the barcode and is typically 1 or 2. Depending on the barcode type used, if the user's printer does not have high enough resolution, a value of 2 or above needs to be used.

For most barcode types, the shortBarHeight parameter is the same as the height parameter. For barcode types EAN-8, EAN-13, UPC-A and UPC-E, you may OPTIONALLY supply a smaller value for shortBarHeight; this, however, is only cosmetic and has no effect on the actual scannability of the barcode. For POSTNET, short bars MUST be shorter than than the regular bars. However, you can still supply the same value for shortBarHeight as for height in this case, because the Barcode Active Server Component will automatically calculate and use a different value internally.