NTPSetOption (XHTML export)

 

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

 

 

NTPOPTION_XHTMLEXP_RESOLUTION

Defines the resolution in dpi for the coordinate conversion and the 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). The default is 75.

 

 

NTPOPTION_XHTMLEXP_BITSPERPIXEL

Defines the color depth for the generated graphics files. For XHTML 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_XHTMLEXP_RECTANGLE

Configures how rectangle objects are exported.

0 =        Ignore object

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

Default: 1

 

 

NTPOPTION_XHTMLEXP_BARCODE

Configures how bar code objects are exported.

0 =        Ignore object

1 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_DRAWING

Configures how graphics objects are exported.

0 =        Ignore object

1 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_ELLIPSE

Configures how ellipsoid objects are exported.

0 =        Ignore object

1 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_LINE

Configures how line objects are exported.

0 =        Ignore object

1 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_TEXT

Configures how text objects are exported.

0 =        Ignore object

1 =        Object as complete text object

2 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_RTF

Configures how RTF objects are exported.

0 =        Ignore object

1 =        As formatted RTF text (is interpreted and converted to XHTML and formatted with CSS)

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

3 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_TABLE

Configure how tables are exported.

0 =        Ignore object

1 =        As complete table object

Default: 1

 

 

NTPOPTION_XHTMLEXP_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_XHTMLEXP_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

3 =        Draw cell specific frames (uses CSS)

Default: 3

 

 

NTPOPTION_XHTMLEXP_EXTENDOBJECTS

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

0 =        Ignore object

1 =        Object as JPEG

Default: 1

 

 

NTPOPTION_XHTMLEXP_HTMLOBJECT

Configures how HTML objects are exportedl.

0 =        Ignore object

1 =        Object as JPEG

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

Default: 2

 

 

NTPOPTION_XHTMLEXP_TEXTFRAMES

Configures how frames around text objects are exported.

0 =        Single frames for top, bottom, left, right (uses CSS)

1 =        Complete frame as Box

Default: 0

 

 

NTPOPTION_XHTMLEXP_HTMLTITLE

Specifies the title for the XHTML document to be generated.

 

 

NTPOPTION_XHTMLEXP_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_XHTMLEXP_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_XHTMLEXP_FILE

Provides the file name for the first XHTML page to be generated. Default: "index.htm". You may use printf placeholders in the file name as e. g. "%08d" (e. g. "Export page %d.htm"). In this case the first and the following pages are named by replacing the placeholder via the appropriately formatted page number. Otherwise pages will simply be numbered.

 

NTPOPTION_XHTMLEXP_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_XHTMLEXP_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_XHTMLEXP_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_XHTMLEXP_RTFRAMES

Configures the way how frames around RTF objects are exported.

0 = Single frames for top, bottom, left, right (uses CSS)

1 = Complete frame as box

Default: 0

 

 

NTPOPTION_XHTMLEXP_ADVANCEDCSS

Defines if non-standardized CSS formats are used.

0 =        No non-standardized CSS formats are used.

1 =        Non-standardized CSS formats are used, e. g. in order to display a color gradient.

Default: 0

 

 

NTPOPTION_XHTMLEXP_TOOLBARTYPE

Defines if a toolbar with extended functions is to be generated.

0 =        No toolbar is generated.

1 =        A toolbar in the color scheme skyblue is generated.

2 =        A toolbar in the color scheme blue is generated.

3 =        A toolbar in the color scheme black is generated.

4 =        A toolbar in the color scheme web is generated.

Default: 0

 

 

NTPOPTION_XHTMLEXP_SEPARATECSS

Defines if a separate CSS file is to be generated.

0 =        CSS is written in the header of the XHTML file.

1 =        CSS is written in a separate file.

Default: 0