Enhanced Mode

This mode is activated by setting the option LL_OPTION_USECHARTFIELDS to TRUE. In this case, besides variables and fields you have special chart fields available. These can be declared similarly to normal fields via API calls. This mode offers more flexibility than the standard mode; your users may

•   use chart objects wherever they like (no printing order has to be obeyed)

•   use chart objects in label / card projects.

LlPrintFields() in this mode does not have any influence on the charts, the analogous command in the enhanced mode is LlPrintDeclareChartRow(). This API call passes the data currently defined to the chart objects. Which chart objects are addressed can be determined by the parameter:

 

Value

Meaning

LL_DECLARECHARTROW_­FOR_OBJECTS

The data is passed to all chart objects not contained in table columns.

LL_DECLARECHARTROW_­FOR_TABLECOLUMNS

The data is passed to all chart objects in table columns.

 

For charts within a label project, the following pseudo code would apply:

<print start>
       (LlPrintStart,
        LlPrintWithBoxStart
)

<while
       - no error and not finished>
{

       <define variables>
       <while
       - no error or
       - not finished (ex. i = 1..12)>
       {
                <define chart fields (ex. Month = MonthName[i])>
                <send data to chart controls>
                (LlPrintDeclareChartRow(LL_DECLARECHARTROW_FOR_OBJECTS))
                }

       <print objects>                          
                (LlPrint)
       <no warning, no abortion: next record>
       }
<done>
       (LlPrintEnd)

Of course, all chart fields used must also be declared before calling the Designer, in order to enable your users to use them at all.