Programming Interface

You can find a description of all options used in the XML export module in this chapter. These options can be modified/read using the methods LlXSetParameter(..."XML"...) and LlXGet­Parameter(..."XML"...).

Resolution: Defines the resolution in dpi for the transformation of the coordinates and the generation of pictures. Default: 96 dpi, screen resolution.

Picture.JPEGQuality: Specifies the quality and the corresponding compression factor of the generated JPEG graphic. The value lies between 0 and 100, with 100 representing the highest quality (and therefore the least compression). Takes effect only when the source graphic is not the JPEG format, as encoding of JPEG to JPEG would result in a quality loss. Default: 75

Picture.JPEGEncoding: Specifies how to encode JPEG images

Value

Meaning

0

Save JPEGS as (external) files

1

Include pictures MIME encoded into the XML file

2

Ignore JPEG images

Default

0

 

Picture.BitsPerPixel: Defines the color depth of the generated picture. Please note that the picture files will quickly get very large with higher color depths.

Value

Meaning

1

Black & White

24

24bit True Color

Default

24

 

Verbosity.Rectangle: Configures how rectangle objects should be exported.

Value

Meaning

0

Ignore object

1

Complete object information

2

Object as JPEG

Default

1

 

Verbosity.Barcode: Configures how barcode objects should be exported.

Value

Meaning

0

Ignore object

1

Complete object information and object as JPEG

Default

1

 

Verbosity.Drawing: Configures how picture objects should be exported.

Value

Meaning

0

Ignore object

1

Complete object information and object as JPEG

Default

1

 

Verbosity.Ellipse: Configures how ellipse objects should be exported.

Value

Meaning

0

Ignore object

1

Complete object information

2

Object as JPEG

Default

1

 

Verbosity.Line: Configures how line objects should be exported.

Value

Meaning

0

Ignore object

1

Complete object information

2

Object as JPEG

Default

1

 

Verbosity.Text: Configures how text objects should be exported.

Value

Meaning

0

Ignore object

1

Object as text object

2

Object as JPEG

Default

1

 

Verbosity.RTF: Configures how RTF objects should be exported.

Value

Meaning

0

Ignore object

1

As RTF stream

2

As unformatted text (uses the default font specified in the project file)

3

Object as JPEG

Default

1

 

Verbosity.Table: Configures how table objects should be exported.

Value

Meaning

0

Ignore object

1

As a table object

Default

1

 

Verbosity.Table.Cell: Configures how table cells should be exported.

Value

Meaning

0

Ignore cell

1

As a cell object using the verbosity settings of the object types specified in the cell.

2

Cells as JPEG

Default

1

 

Verbosity.LLXObject: Configures how LLX objects (e.g. chart object) should be exported.

Value

Meaning

0

Ignore object

1

Complete object information and object as JPEG

Default

1

 

XML.Title: Specifies the title of the generated XML document.

Export.Path: Path where the exported files should be saved. If this option is empty, a file selection dialog will always be displayed.

Export.File: File name of the first XML page. Default: "export.xml". You may also use printf format strings like "%d" in the filename (ex. "Export Page %d.xml"). In this case, the files for the pages will be named by replacing the placeholder with the correctly formatted page number. Otherwise, you will get a simple page numbering for the result files.

Export.AllInOneFile: Configures the export result format.

Value

Meaning

0

Every printed page will be exported in a single XML file.

1

The result is a single XML file (Export.File), containing all printed pages.

Default

1

 

Export.Quiet: Use this option to configure the possibility of exporting without user interaction.

Value

Meaning

0

Export with user interaction (dialogs)

1

No dialogs or message boxes – including overwrite warnings - will be displayed (only if Export.Path was specified).

Default

0

 

Export.ShowResult: Specifies whether the export result will be displayed automatically. The program that displays the result will be determined by the registered file extension.

Value

Meaning

0

Result will not be displayed automatically.

1

Calls ShellExecute() with Export.File.

Default

0

 

Export.ShowResultAvailable: Enables you to hide the respective checkbox in the dialog.

Value

Meaning

0

Checkbox will be hidden

1

Checkbox will be available

Default

1

 

Export.OnlyTableData: Only data from table lines will be exported.

Value

Meaning

0

All objects are exported.

1

Only table cells and their data are exported.

Default

0