NTPSetOption (HTML export)

 

The following is a description of the options supported by the HTML export module. These options may be set by usingNTPSetOption. These options may partially be set by using the printer selection dialogue.

 

NTPOPTION_HTMLEXP_RESOLUTION

Defines the resolution in dpi for the coordinate conversion and graphics generation. The default is 96dpi, screen resolution.

 

 

NTPOPTION_HTMLEXP_JPEGQUALITY

Specifies the quality and the related compression factor for the generated JPEG graphics. The value is between 0... 100, whereby 100 is equivalent to the maximum JPEG quality (and the worst compression rate). Default is 100.

 

 

NTPOPTION_HTMLEXP_BITSPERPIXEL

Defines the color depth for the generated graphics files. For HTML export 256 colors are usually sufficient. It should be noted, that for higher color depths, graphics files can explode in size.

1 = Black and white

4 = 16 colors

8 = 256 colors

24 = 24bit True Color

32 = 32bit True Color

Default: 8

 

 

NTPOPTION_HTMLEXP_RECTANGLE

Configures the way rectangle objects are exported.

0 = Ignore objects

1 = Object as JPEG (and in addition as complete rectangle object for colored background objects)

Default: 1

 

 

NTPOPTION_HTMLEXP_BARCODE

Configures how barcode objects are exported.

0 = Ignore object

1 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_DRAWING

Configures how graphics objects are exported.

0 = Ignore object

1 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_ELLIPSE

Configures how ellipsoid objects are exported.

0 = Ignore object

1 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_LINE

Configures how line objects are exported.

0 = Ignore object

1 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_TEXT

Configures how text objects are exported.

0 = Ignore object

1 = Object as complete text object

2 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_RTF

Configures how RTF objects are exported.

0 = Ignore object

1 = As formatted RTF text (is interpreted and converted to HTML)

2 = As unformatted text (the font will be the projects default font)

3 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_TABLE

Configures how tables are exported.

0 = Ignore object

1 = As complete table object

Default: 1

 

 

NTPOPTION_HTMLEXP_TABLECELL

Configures how table cells are exported.

0 = Ignore cells

1 = As complete cell object (conform with the settings of the appropriate object types)

2 = Cells as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_TABLEFRAMES

Configures how table frames are exported.

0 = Do not show table frames

1 = Show only horizontal table frames as horizontal lines

2 = Complete table row with all frames provided vertical frames exist, otherwise as in 1

Default: 1

 

 

NTPOPTION_HTMLEXP_EXTENDOBJECTS

Configures how extended objects (e.g. the chart object) are exported.

0 = Ignore object

1 = Object as JPEG

Default: 1

 

 

NTPOPTION_HTMLEXP_HTMLOBJECT

Configures how the HTML object is exported.

0 = Ignore object

1 = Object as JPEG

2 = Object in HTML format. Only the HTML commands between <BODY> and </BODY> are exported. Note the a.m. limitations.

Default: 2

 

 

NTPOPTION_HTMLEXP_HTMLCHARSET

Defines the charset which is to be used for the HTML page to be generated and which sets the interpretation standards for the web browser. If not charset is set, the charset will be calculated depending on the codepage used. The following table provides an overview of the allocation of codepage to charset

1250 = Charset is set to ISO-8859-2 ("Latin-2").

1251 = Charset is set to ISO-8859-5 ("Cyrilic").

1252 = Charset is set to ISO-8859-1 ("Latin-1").

1253 = Charset is set to ISO-8859-7 ("New Greek").

1254 = Charset is set to ISO-8859-9 ("Latin-5, Turkish").

1255 = Charset is set to ISO-8859-8 ("Hebrew ").

1256 = Charset is set to ISO-8859-6 ("Arabic").

1257 = Charset is set to ISO-8859-4 ("Latin-4").

932 = Charset is set to ISO-2022-JP ("Japanese").

936 = Charset is set to GB2312 ("Chinese").

Default: The default charset contained in the active LNG file for the active language.

 

 

NTPOPTION_HTMLEXP_HTMLTITLE

Specifies the title for the HTML document to be generated.

 

 

NTPOPTION_HTMLEXP_PERCENTAGED

Defines if the layout is to be absolute or in percentage relation to the page width.

0 = Layout in X-direction absolute in Pixel

1 = Layout in X-direction everywhere as a percentage of the page width

Default: 0

 

 

NTPOPTION_HTMLEXP_PATH

Defines the target path for the export. If an empty string is passed, the user will be presented with a path selection dialogue.

 

 

NTPOPTION_HTMLEXP_FILE

Provides the file name for the first HTML page to be generated.

 

 

NTPOPTION_HTMLEXP_ALLINONEFILE

Configures the export result.

0 = The results are n different HTML files, one for every page generated. The file names are sequentially numbered (with the exception of the starting file).

1 = The result is a single HTML file which contains all pages generated.

Default: 1

 

 

NTPOPTION_HTMLEXP_QUIET

Specifies if the export is to be generated with user interaction.

 

0 = User interaction/dialogues allowed

 

1 = No target path dialogue (provided the path has been set) and no "overwrite?" query. A summary of the overlapping objects that where ignored is not shown either.

Default: 0

 

 

NTPOPTION_HTMLEXP_SHOWRESULT

Specifies if the application registered with the file name is to be started automatically after the export is completed.

0 = Do not show results

1 = Initiates a ShellExecute() on file names, which normally leads to the start of a web browser

Default: 0

 

 

NTPOPTION_HTMLEXP_HTMLFORMHEADER

Defines an HTML form tag equivalent to <form method="POST" action=...". If this is set, the object names will be searched for HTML form extensions and an HTML form is generated.

Default: Empty, so no form generation

 

 

NTPOPTION_HTMLEXP_HTMLFORMFOOTER

Defines an HTML form tag for the form end.

Default: "</form>"