LlSetOption

Syntax:

INT LlSetOption (HLLJOB hJob, INT nMode, INT_PTR nValue);

Task:

Sets diverse options in List & Label.

Parameter:

hJob: List & Label job handle

nMode: Mode index, see below

nValue: New value

Return Value:

Error code

Hints:

Please call this function before LlDefineLayout() and before the functions LlPrint...Start(), preferably directly after LlJobOpen()/LlJobOpenLCID().

LL_OPTION_ADDVARSTOFIELDS

TRUE: in list projects, the formula wizard offers variables in addition to fields in a table column formula.

FALSE: in table objects, only fields will be offered (default).

This option only affects list projects.

LL_­OPTION_­ALLOW_­COMBINED_­COLLECTING_­OF_­DATA_­FOR_­COLLECTIONCONTROLS

TRUE: If multiple report container elements use the same data source (ex. multiple charts or crosstabs etc.), the data is passed only once to the report and is re-used by all these elements. Depending on the project, this might yield a noticeable performance boost. The main drawback is a larger memory footprint. Additionally, it is no longer possible to change the value of variables that influence the properties or contents of the elements during printing (default).

FALSE: Each element gets its own data.

LL_OPTION_ALLOW_LLX_EXPORTERS

TRUE: List & Label will accept export modules that are loaded during LL_OPTIONSTR_LLXPATHLIST

FALSE: List & Label will not use export module functionality.

This option must be set before the LLXPATHLIST call.

Default: TRUE

LL_­OPTION_­CALCSUMVARSONINVISIBLELINES

This sets the default value for the Designer option specifying whether or not sum variables should also be calculated if data lines are suppressed. The value selected in the Designer will then be saved in and loaded from the project file.

Default: FALSE

LL_OPTION_CALC_SUMVARS_ON_PARTIAL_LINES

TRUE: The sum variables are updated as soon as one data line for the record has been printed.

FALSE: The sum variables are updated as soon as all data lines have been completely printed.

Default: FALSE

LL_OPTION_CALLBACKMASK

The value can be any combination of the following values:

LL_CB_PAGE, LL_CB_PROJECT, LL_CB_OBJECT, LL_CB_HELP, LL_CB_TABLELINE, LL_CB_TABLEFIELD

For the definition of parameters, please read the chapter on callbacks.

LL_OPTION_CALLBACKPARAMETER

Sets a parameter that is passed in the scCallback structure to any of the callbacks. Please refer to the chapter on callbacks for further details.

LL_OPTION_CODEPAGE

This option sets or reads the code page which is used for all SBCS/DBCS and Unicode translations in List & Label.

This applies to the "A" API of the DLL as well as reading/writing project files.

This setting is used globally, so it is valid for all List & Label jobs in one task, and the hJob parameter is ignored.

The code page has to be installed on the system (NLS for this code page must be installed).

Default: CP_ACP.

LL_OPTION_COMPAT_PROHIBITFILTERRELATIONS

This prevents the link from being created using a filter when a table sub-element is added. The dialog for selecting the link type is not displayed and the link is always created using relations.

Default: FALSE

LL_OPTION_COMPRESSRTF

The text of an RTF control is stored in the project file. When this option is set to TRUE, the text will be compressed.

Set this option to FALSE if you want to see the text in the project file (for example for debugging).

Default: TRUE

LL_OPTION_COMPRESSSTORAGE

TRUE: the preview data will be compressed. This is a bit slower, but saves a lot of disk space.

FALSE: no compression (default).

LL_OPTION_CONVERTCRLF

TRUE: List & Label translates CR-LF combinations in variable and field contents to LF (and prevents duplicate line breaks) (default).

FALSE: contents remain unchanged.

LL_OPTION_DEFAULTDECSFORSTR

This option sets the number of decimal places that the Designer function Str$() uses if the number is not defined by the user in the Designer.

Default: 5

LL_OPTION_DEFDEFFONT

Allows you to set the handle of the font used as default for the project's default font. The handle need not be valid after the API call, an own copy of the font will be used.

This font can be set by LL_OPTIONSTR_DEFDEFFONT.

Default: GetStockObject(ANSI_VAR_FONT)

LL_OPTION_DELAYTABLEHEADER

This option defines whether List & Label prints the table header when calling LlPrint() or when first printing a table line (LlPrintFields()):

TRUE: at LlPrintFields(), thus triggered by the first table line (Default)

FALSE: at LlPrint(). Of course, if fields are used in the header line, they must be defined at the LlPrint() call.

LL_­OPTION_­ DESIGNEREXPORTPARAMETER

See chapter Direct Print and Export From the Designer.

LL_­OPTION_­ DESIGNERPREVIEWPARAMETER

See chapter Direct Print and Export From the Designer.

LL_­OPTION_­ DESIGNERPRINT_SINGLETHREADED

See chapter Direct Print and Export From the Designer.

LL_OPTION_ERR_ON_FILENOTFOUND

TRUE: if a graphic file is not found during print time LL_ERR_DRAWINGNOTFOUND will be returned

FALSE: the error will be ignored without any feedback. (Default)

LL_OPTION_ESC_CLOSES_PREVIEW

This option defines whether the "Escape" key closes the preview window. Default: FALSE.

LL_OPTION_EXPRSEPREPRESENTATIONCODE

Character code of the character that is used to divide an expression into multiple lines in the expression wizard.

This value might have to be changed for code pages other than standard Western code page, as the default might be used for a printable character.

LL_OPTION_FAVORITE_SETTINGS

This option defines the behavior of the property favorites. The following values can be comined.

Value

Meaning

LL_FAVORITES_ENABLE_FAVORITES_BY_DEFAULT

Favorites are editable, button is activated by default, registry settings will be ignored.

LL_FAVORITES_HIDE_FAVORITES_BUTTON

Favorites are not editable, button is invisible.

 

Default: Favorites are editable, the button shows the last state from the registry.

LL_OPTION_FONTQUALITY

(See also LL_OPTION_FONTPRECISION below)

Can be used to influence the Windows font mapper, for example to use a device font. The value set by this option will be used for the LOGFONT.lfQuality field when a font instance is being created.

The permitted values are referenced in the MSDN documentation.

Default: DEFAULT_QUALITY.

LL_OPTION_FONTPRECISION

(See also LL_OPTION_FONTQUALITY above)

Can be used to influence the font mapper of Windows, for example to use a device font. The value set by this option will be used for the LOGFONT.lfOutPrecision field when a font instance is being created.

The permitted values are referenced in the MSDN documentation.

Default: OUT_STRING_PRECIS.

LL_­OPTION_­FORCE_DEFAULT_PRINTER_IN_PREVIEW

TRUE: printer name setting will not passed on to the preview, so that the preview always uses the default printer in its print routines

FALSE: printer name setting will be passed on to the preview (default)

LL_­OPTION_FORCEFONTCHARSET

Selects whether all fonts in the system are offered in font selection combo boxes or whether they must support the charset of the default LCID (or the font set with LL_OPTION_LCID). See also LL_­OPTION_­SCALABLEFONTSONLY.

Default: FALSE

LL_OPTION_FORCEFIRSTGROUPHEADER

Set to TRUE to force the first group header to be printed even if the evaluated result of the "group by" property is empty.

Default: FALSE

LL_OPTION_FORCESAVEDESIGNSCHEME

TRUE: The design scheme is saved in the project even if it is set to the default design scheme. This means that a change to the default design scheme via LL_OPTIONSTR_DEFAULTSCHEME no longer affects existing projects saved with this option.

FALSE: The design scheme is saved in the project only if it differs from the default design scheme.

Default: FALSE

LL_OPTION_HELPAVAILABLE

TRUE: display help buttons (default)

FALSE: do not display help buttons

LL_OPTION_IDLEITERATIONCHECK_MAX_ITERATIONS

This option is used to set the maximum number of attempts to print an object. Useful to prevent endless loops if non-wrappable content is exceeding the available space.

Default: 0 (no limit)

LL_OPTION_IMMEDIATELASTPAGE

FALSE: the LastPage() flag will not be set before all objects have been printed (up to a table in case of a report project).

TRUE: a non-finished object will immediately force LastPage() to be FALSE, and will reset all its appended objects.

Default: TRUE

LL_OPTION_IMPROVED_TABLELINEANCHORING

Can affect the output for anchored table rows. Unanchored rows will be output below an anchored row that had previously used the most space for it.

Note: Even if anchoring is not used, but lines with negative margin 'on top' are used, the option should be disabled.

Default: TRUE

LL_OPTION_INCREMENTAL_PREVIEW

TRUE: The preview is displayed as soon as the first page has been created and further pages are added to the display incrementally. If the user closes the preview window during printing, you will receive LL_ERR_USER_ABORTED from the print functions. This error code must therefore be processed in any case. If LlPreviewDisplay() is called at the end of printing, this API will only return when the user closes the preview window.

FALSE: The preview is not displayed immediately, the application must explicitly call LlPreviewDisplay() for display.

Default: TRUE

LL_OPTION_INTERCHARSPACING

TRUE: the space between the characters for block-justified text will vary.

FALSE: only the width of spaces between words will be varied (default)

LL_OPTION_INCLUDEFONTDESCENT

TRUE: the logfont member LOGFONT.lfDescent is considered when calculating the line distances. This leads to a wider line space but prevents extreme font descents from being cut off.

FALSE: compatible mode

LL_OPTION_LCID

When you set this option, the default values for locale-dependent parameters are set accordingly (inch/metric unit, decimal point, thousands separator, currency symbol and fonts (see LL_OPTION_FORCEFONTCHARSET)).

It also defines the default locale for the Loc...$() and Date$() functions.

Default: LOCALE_USER_DEFAULT.

LL_OPTION_LOCKNEXTCHARREPRESENTATIONCODE

Character code of the character that represents a 'line break lock' in the Designer.

This value might have to be changed for code pages other than standard western code page, as the default might be used for a printable character.
In most cases you can also use the Code 160 (NO BREAK SPACE).

LL_OPTION_MAXRTFVERSION

Windows or Microsoft applications are supplied with many different RTF controls that support different features and show a different behaviour.

Using this option, you can set the maximum version number of the RTF control to use in the first step. For example, setting the option to 0x100 causes List & Label to load RTF control version 1 (if it exists). Setting the option to 0x401 causes List & Label to try loading RTF control version 4.1. If no control with a version smaller or equal the selected version can be loaded a control with a higher version will be used instead to avoid a loss of data.

To not load any RTF control you should set this option to 0. Advantage is a faster start up and using less resources. However, this also means that the RTF API is not available, i.e. RTF functions such as ToRTF$(), LoadFile$ or RTFtoPlainText$ etc. cannot be used.

This option must be called with job handle –1 before the fist List & Label job has been opened.

LL_OPTION_METRIC

TRUE: List & Label Designer is set to metric system

FALSE: List & Label Designer is set to imperial system (inches)

Default value depends on the system's setting.

See LL_OPTION_UNITS

LL_OPTION_NOAUTOPROPERTYCORRECTION

FALSE: Setting interdependent properties mutually influences each other. (Default)

TRUE: Interdependent properties can be set independently.

This option is sometimes required when working with the DOM object model to prevent automatic property switching. If e.g. the font of a paragraph is set to a Chinese font, the property "Charset" would be automatically switched accordingly. If this is not desired, use this option to switch the behavior.

LL_OPTION_NOCONTRASTOPTIMIZATION

FALSE: Contrast optimization for table fields, charts and crosstab cells. This automatically changes from black to white and vice versa, based on the contrast of the font color when compared to the background. (Default)

TRUE: No contrast optimization.

LL_OPTION_NOFAXVARS

FALSE: The variables for fax are visible in the Designer (default).

TRUE: The variables for fax are not visible in the Designer.

LL_OPTION_NOFILEVERSIONUPGRADEWARNING

This option defines the behavior of the Designer when opening a project file from an older version of List & Label.

TRUE: Conversion takes place without user interaction.

FALSE: A warning box is displayed to the user, indicating that the project file will not be editable by an older version of List & Label once it has been saved with the current version (default).

LL_OPTION_NOMAILVARS

FALSE: The variables for email are visible in the Designer (default).

TRUE: The variables for email are not visible in the Designer.

LL_OPTION_NONOTABLECHECK

TRUE: For a list project, List & Label does not check whether at least one table object is present (default).

FALSE: List & Label performs the check and returns LL_ERR_NO_TABLEOBJECT if the project contains no table.

LL_OPTION_NOPARAMETERCHECK

TRUE: List & Label does not check the parameters passed to its DLL functions, which results in a higher processing speed.

FALSE: The parameters will be checked (default).

LL_OPTION_NOPRINTERPATHCHECK

TRUE: List & Label does not check if the printers that are relevant for the project exists. If for example network printers are used in the project, that are currently not available, waiting time will occur.

FALSE: List & Label checks if the printers that are relavant for the project exist (default).

LL_OPTION_NOPRINTJOBSUPERVISION

With this option monitoring of the print jobs can be switched on (see LL_INFO_PRINTJOBSUPERVISION). Default: TRUE.

LL_OPTION_NOTIFICATIONMESSAGEHWND

Sets the window that is to receive notification messages (callbacks) when no callback procedure is explicitly set.

Usually events are sent to the first non-child window, starting with the window handle given in LlDefineLayout() or LlPrintWithBoxStart(). You can modify the destination with this call.

Default: NULL (default behavior)

LL_­OPTION_­NULL_IS_NONDESTRUCTIVE

List & Label handles NULL-values according to the SQL-92 specification where possible. An important effect of that is, that functions and operators, which get NULL-values as parameter or operator generally also return NULL as the result. An example is the following Designer formula:

Title+" "+Firstname+" "+Lastname

If Title is filled with NULL, the result of the formula is also NULL according to the standard. As it often can be desired to get

Firstname+" "+Lastname

instead, the option LL_OPTION_NULL_IS_NONDESTRUCTIVE defines that NULL-values do not result in the complete expression to become NULL (against the specification) but according to the data type will become "0", an empty string or an invalid date. The better alternative is however to work with NULLSafe() Designer functions, where the replacement value can be defined exactly in case of NULL.

TRUE: NULL-values will be displayed by replacement values.

FALSE: NULL-values as operators or parameter result in NULL as function value (default).

LL_OPTION_PARTSHARINGFLAGS

This option allows you to use the variables passed to List & Label within the report sections Table of Contents, Index and Reverse Side. The following flags can be or'ed:

Value

Meaning

LL_PARTSHARINGFLAG_VARIABLES_TOC (0x01)

Table of Contents

LL_PARTSHARINGFLAG_VARIABLES_IDX (0x02)

Index

LL_PARTSHARINGFLAG_VARIABLES_GTC (0x04)

Reverse Side

 

LL_OPTION_PHANTOMSPACEREPRESENTATIONCODE

Character code of the character that represents a 'phantom space' in the Designer.

This value might have to be changed for code pages other than standard Western code page, as the default might be used for a printable character.

LL_OPTION_POSTPAINT_TABLESEPARATORS

TRUE: In a table object, the cell borders will be painted only after painting the complete background so that rounding errors during painting (background of the following line can paint over the lower frame line) are avoided.

FALSE: Compatible mode, the cell borders will be painted directly after each cell.

LL_OPTION_PREVIEW_SCALES_RELATIVE_TO_PHYSICAL_SIZE

This option allows by using flags (0x1: Designer, 0x2: Preview Window) to decide where the preview should match the true physical size on screen when setting the zoom to 100%.

LL_OPTION_­PRINTERDCCACHE_­TIMEOUT_­SECONDS

Determines how long (in seconds) printer device contexts are cached. Please note that some printers do not start a print job before the corresponding device context is closed. For these, you might want to change this setting to 0. The default value is 60.

LL_OPTION_ PRINTERDEVICEOPTIMIZATION

TRUE: Printers that are effectively equal concerning their DEVMODE structs are optimized away (default). This also means that print jobs may be collated even if there are pages with different printer settings in between. To prevent this from happening, you may switch this option to FALSE.

FALSE: All printers are shown, print jobs are not collated.

LL_OPTION_­PRINTERLESS

TRUE: List & Label uses a virtual device for the rendering. This means that no printer driver is required and used on the system. Note that this may have a minimal impact on the positioning of the output.

Printer settings from the printer configuration file (the so-called "P-File") are not considered any further - only the parameters contained for the export formats. Functions that influence the printer configuration file with respect to the printer, such as LlSetPrinterInPrinterFile etc., cannot be used with Printerless enabled.

FALSE: List & Label uses the printer (drivers) installed in the system for rendering (default).

This option must be called with job handle –1 before the fist List & Label job has been opened.

LL_OPTION_PROHIBIT_OLE_OBJECTS_IN_RTF

TRUE: This can be used in "Formatted Text" (RTF) objects to prevent any OLE objects from being loaded.

FALSE: OLE objects will be loaded (default).

LL_OPTION_PROHIBIT_USERINTERACTION

TRUE: No message boxes and dialogs will be displayed. Message boxes will automatically return the default value. This option is usually set automatically in webserver environments. If the webserver detection should fail for some reason, you can manually force the non-UI mode via this option.

FALSE: Message boxes and dialogs are displayed (default).

LL_OPTION_PROJECTBACKUP

TRUE: A backup file is generated during editing in the Designer (default).

FALSE: No backup file is generated.

LL_OPTION_PRVZOOM_LEFT, LL_OPTION_PRVZOOM_TOP, LL_OPTION_PRVZOOM_WIDTH, LL_OPTION_PRVZOOM_HEIGHT

Preview: the rectangle coordinates of the preview window in percentage of the screen. If this is not set (set to -1), the positions of the window when it was last closed will be used.

LL_OPTION_PRVRECT_LEFT, LL_OPTION_PRVRECT_TOP, LL_OPTION_PRVRECT_WIDTH, LL_OPTION_PRVRECT_HEIGHT

The same in screen pixels.

LL_OPTION_PRVZOOM_PERC

Preview: initial zoom factor in percentage (default: 100). To zoom to page width, set the value to -100.

LL_OPTION_REALTIME

TRUE: Time() and Now() will always use the current time

FALSE: The time will be fixed once when the project is loaded (default)

LL_OPTION_RESETPROJECTSTATE_FORCES_NEW_DC

TRUE: The output device context will be created new after LlPrintResetProjectState() (default).

FALSE: The device context is preserved after LlPrintResetProjectState(). Is not supported by all printers, but results in increased performance with merge print.

LL_OPTION_RESETPROJECTSTATE_FORCES_NEW_PRINTJOB

TRUE: A new print job is forced after LlPrintResetProjectState(). This option is especially of use if the same project is printed consecutively multiple times and when it is important that every one of the prints creates its own job in the spooler.

FALSE: Multiple reports can be merged into one print job. A new print job is only created if it is necessary due to duplex prints (default).

LL_OPTION_RETREPRESENTATIONCODE

Character code of the character that represents a 'new line' in the Designer.

This value might have to be changed for code pages other than standard Western code page, as the default might be used for a printable character.

LL_OPTION_RIBBON_DEFAULT_ENABLEDSTATE

TRUE: The Designer and the print preview use the Windows Ribbon framework. The Ribbon may be switched off in the project's options dialog (default).

FALSE: Usage of the Ribbon has to be enabled explicitly in the project's options dialog.

LL_OPTION_RTFHEIGHTSCALINGPERCENTAGE

Percentage value to wrap RTF text a bit earlier so that MS Word does show RTF text completely (default: 100).

LL_OPTION_SCALABLEFONTSONLY

Here you can choose which fonts can be selected in font selection dialogs: only scalable fonts (TrueType and Vector fonts, TRUE) or all (FALSE).

Raster fonts have the disadvantage of not being scalable, so the preview may not appear as expected.

Default: TRUE

LL_OPTION_SETCREATIONINFO

List & Label can store some information about the user (user and computer name, date and time of creation as well as last modification) in the project file and the preview file. This can be important for tracing modifications.

TRUE: Save info (default)

FALSE: Suppress info

LL_OPTION_SHOWPREDEFVARS

TRUE: The internal variables of List & Label will be listed in the variable selection dialog of the formula wizard (default).

FALSE: These will be suppressed.

LL_OPTION_SKETCH_COLORDEPTH

This option sets the color depth of the sketch files for the file selection dialogs. Default is 8, i.e. 256 colors. 32 would be true color.

LL_OPTION_SKIPRETURNATENDOFRTF

RTF texts may contain blank lines at the end.

TRUE: These are removed

FALSE: The blank lines are printed (default).

LL_OPTION_SORTVARIABLES

TRUE: The variables and fields in the selection dialog are sorted alphabetically.

FALSE: The variables and fields in the selection dialog are not sorted (default).

LL_OPTION_SPACEOPTIMIZATION

TRUE: List & Label will default the "space optimization" feature for new paragraphs in text objects and new fields (default).

FALSE: The default state will be unchecked.

This does not apply to existing objects!

LL_OPTION_SVG_TO_DIB_MAX_SIZE

Controls the maximum area (x*y) a bitmap may get (in pixel, memory consumption is about 4 times the value!). Default is 5000000 for 32-bit applications and 10000000 for 64-bit applications.

LL_OPTION_SVG_TO_DIB_RESOLUTION

Controls the conversion of a drawing's rectangle in the project to bitmap pixel dimensions. Default is 150 for 32-bit applications and 300 for 64-bit applications.

LL_OPTION_SUPERVISOR

TRUE: All menu options are allowed, and even locked objects are not locked. This mode enables sections that are not accessible to the user to be used without much additional programming.

FALSE: Limitations are valid (default)

LL_OPTION_SUPPORTS_PRNOPTSTR_EXPORT

TRUE: The user can choose a default exporter for the project, which will be preset in the print options dialog

FALSE: Usually means that the application sets the default exporter

The default print medium is stored in the Project file.

Default: FALSE

LL_OPTION_SUPPRESS_TOOLTIPHINTS

TRUE: The Designer does not display detailed info tooltips.

FALSE: The info tooltips are displayed.

Default: FALSE

LL_OPTION_TABLE_COLORING

LL_COLORING_DESIGNER: the coloring of list objects may only be carried out by List & Label (default)

LL_COLORING_PROGRAM: the coloring of list objects is only carried out by notifications or callback (see chapter "Notifications and Callbacks"); color setting in the Designer is not possible

LL_COLORING_DONTCARE: the coloring is first of all carried out by the program by notification or callback and then additionally by List & Label.

LL_OPTION_TABREPRESENTATIONCODE

Character code of the character that represents a 'tab' in the Designer.

This value might have to be changed for code pages other than standard Western code page, as the default might be used for a printable character.

LL_OPTION_UNITS

Description and values see LL_PRNOPT_UNIT.

LL_OPTION_USEBARCODESIZES

Some barcodes have size limitations (minimum and/or maximum sizes). If this option is set to TRUE, the user is allowed to switch on the size limitation feature so that when resizing the barcode object, only sizes in the standard size range will be allowed.

LL_OPTION_USECHARTFIELDS

TRUE: Chart objects will get their data through the chart API.

FALSE: Compatible mode, charts get their data through LlPrintFields(). (Default)

Please read the hints in the Chart chapter of this manual.

LL_OPTION_USEHOSTPRINTER

TRUE: List & Label passes all printer device operations to the host application, which then has more freedom but also has to work harder. See LL_CMND_HOSTPRINTER.

FALSE: List & Label manages the printer device

LL_­OPTION_­USESIMPLEWINDOWSPENSTYLE_FRAMEDRAWING

TRUE: The standard simple frame lines for tables and objects such as dotted, dashed, dashed-dotted, and dashed-dotted-dotted are more effectively output directly by Windows and the PDF viewer, respectively. May result in higher overall performance and smaller export files when creating reports.

FALSE: Uses a custom drawing method (individual objects) to output frame lines. This can lead to better results when outputting to printers.

Default: FALSE

LL_­OPTION_­USE_JPEG_OPTIMIZATION

TRUE: List & Label embeds JPEG files as JPEG stream into the preview (meta) files. This leads to a significantly decreased file size but the meta files will only be readable from List & Label and not from any third-party picture editors anymore. (Default).

FALSE: JPEG files will be embedded as bitmap records into the preview (meta) files, which will result in significantly larger file sizes.

LL_­OPTION_­VARLISTDISPLAY

Determines the order of the variables/fields and folders in the associated tool window.

The following flag groups can be oreded:

Value

Meaning

LL_OPTION_VARLISTDISPLAY_VARSORT_DECLARATIONORDER (0x00)

Display of variables in declaration order

LL_OPTION_VARLISTDISPLAY_VARSORT_ALPHA (0x01)

Display of variables in alphabetical order

 

Value

Meaning

LL_OPTION_VARLISTDISPLAY_FOLDERPOS_DECLARATIONORDER (0x00)

Display folders in declaration order

LL_OPTION_VARLISTDISPLAY_FOLDERPOS_ALPHA (0x10)

Display folders in alphabetical order

LL_OPTION_VARLISTDISPLAY_FOLDERPOS_TOP (0x20)

Display folders top

LL_OPTION_VARLISTDISPLAY_FOLDERPOS_BOTTOM (0x30)

Display folders below

 

LL_OPTION_VARSCASESENSITIVE

TRUE: Variable and field names are case-sensitive

FALSE: Variable and field names are not case-sensitive ("Name" defines the same variable as "NAME"). This option results in a slightly lower speed. (Default)

 

LL_OPTION_VIRTUALDEVICE_SCALINGOPTIONS

This option is important for optimizing text placement in environments without printer drivers (see LL_OPTION_PRINTERLESS). Too small a magnification can lead to "poor" placement accuracy of output, a too large one (option value between 72 and 2400) can result in objects or parts of them not being output. In any case, you should check the results in the target environment.

 

The following values can be used:

Value

Meaning

LL_OPTION_VIRTUALDEVICE_SCALINGOPTION_UNSCALED (0x00)

The project is rendered 1:1 in the selected size with the screen device context as reference with the resolution/size of the screen context - can lead to inaccuracies in the placement of outputs if they are calculated using the device coordinates (default).

LL_OPTION_VIRTUALDEVICE_SCALINGOPTION_OPTIMIZE_TO_SCREENRES (0x01)

The resolution for the output is converted so that it is optimally fitted to the size of the screen device context.

LL_OPTION_VIRTUALDEVICE_SCALINGOPTION_OPTIMIZE_TO_SCREENRES_AT_LEAST_ONE (0x02)

The resolution for the output is converted to fit the size of the screen device context exactly, provided that the resolution does not have to be reduced for this purpose.

72-2400

The resolution for the output in DPI.

 

LL_OPTION_XLATVARNAMES

TRUE: Special characters in variable and field names will be converted to '_'. (Default)

FALSE: Variable and field names will not be modified. This has a speed advantage, but you must make sure that the field and variable names do not contain these characters. Should be switched to FALSE when using MBCS.

Return value:

Error Code

Hints:

Please call this function before LlDefineLayout() and before the LlPrint...Start() functions, so preferably directly after LlJobOpen()/ LlJobOpenLCID().

Example:

  HLLJOB hJob = LlJobOpen(0);
  LlSetOption(hJob, LL_­OPTION_XLATVARNAMES, FALSE);
  // ....
  LlJobClose(hJob);

See also:

LlGetOption, LlGetOptionString, LlSetOptionString