NTPSetOption (XML export)

 

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

 

 

NTPOPTION_XMLEXP_RESOLUTION

Defines the resolution in dpi for the coordinate conversion and graphics generation.

The default is 96dpi, screen resolution.

 

 

NTPOPTION_XMLEXP_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_XMLEXP_JPEGENCODING

Defines how JPEG images are to be encoded.

0 = JPEG images are saved as (external) files

1 = JPEG images are MimeEncoded and are saved in the XML file

2 = JPEG images are not saved

Default: 0

 

 

NTPOPTION_XMLEXP_BITSPERPIXEL

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

Configures the way rectangle objects are exported.

0 = Ignore objects

1 = Complete information of the object

2 = Object as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_DRAWING

Configures how graphics objects are exported.

0 = Ignore object

1 = Complete object information and as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_ELLIPSE

Configures how ellipsoid objects are exported.

0 = Ignore object

1 = Complete information of the object

2 = Object as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_LINE

Configures how line objects are exported.

0 = Ignore object

1 = Complete information of the object

2 = Object as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_TEXT

Configures how text objects are exported.

0 = Ignore object

1 = Object as complete text object

2 = Object as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_RTF

Configures how RTF objects are exported.

0 = Ignore object

1 = As RTF stream

2 = As unformatted text

3 = Object as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_TABLE

Configures how tables are exported.

0 = Ignore object

1 = As complete table object

Default: 1

 

 

NTPOPTION_XMLEXP_TABLECELL

Configures how table cells are exported.

0 = Ignore cells

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

2 = Cells as JPEG

Default: 1

 

 

NTPOPTION_XMLEXP_EXTENDOBJECTS

Configures how LLX- objects (e.g. the HTML and chart object) are exported.

0 = Ignore object

1 = Complete information of the object and as JPEG

Default: 1

 

 

 

NTPOPTION_XMLEXP_XMLCHARSET

Defines the charset which is to be used for the XML page to be generated and which sets the interpretation standards for the XML parser. If no 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_XMLEXP_XMLTITLE

Specifies the title for the XML document to be generated.

 

 

NTPOPTION_XMLEXP_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_XMLEXP_FILE

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

 

 

NTPOPTION_XMLEXP_ALLINONEFILE

Configures the export result.

0 = The results are n different XML 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 XML file which contains all pages generated.

Default: 1

 

 

NTPOPTION_XMLEXP_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.

Default: 0

 

 

NTPOPTION_XMLEXP_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_XMLEXP_ONLYONETABLE

Allows the export of data within table cells only.

0 = All objects are exported

1 = Only table cells with their data are exported

Default: 0