Setdatabase, Setprintparam – QuickLabel Designer Pro User Manual

Page 191

Advertising
background image

- 191 -

 

l

You cannot change the printer (PRINTER command) within a session

 

l

You must set values for all variables from the label within a session, even if some of the 
variables will have empty values

 

l

When you test the JOB files that use session printing, the command File -> Command 
Files -> Print Preview does not work

SET

SET name=variable_value, [,step[, quantity_of_repetition]]

Name is the name of the variable   defined on the label. If the variable isn't on the label, an error will   
occur. Step and Quantity_of_repetition   are option parameter. These parameters tell the increment 
of the variable   and the number of the labels before change.

If Variable_value contains space   characters or commas, you have to enclose the text in the text qual-
ifier   marks. By default the text qualifier is a double quote character, but   you can use any other char-
acter (refer to the command TEXTQUALIFIER).

If you want to assign multi-line value to a variable, use the syntax   "\r\n" to encode newline char-
acter. "\r" is replaced   with CR (Carriage Return) and "\n" is replaced with LF (Line   Feed). Both, 
CR and LF, represent newline character in Windows operating   system.

Note: Be careful   when setting values to variables that provide data for pictures on the   label, as back-
slash characters might be replaced with some other characters.

For example, if you assign a value "c:\My Pictures\raw.jpg"   to the variable, the "\r" will be replaced 
with CR character   and the final result is this:

c:\My Pictures
aw.jpg

Note: You cannot use the command SET to set the value to the variable of the type Global. Values 
of global variables cannot be set from outside of the label designer.

SETDATABASE

SETDATABASE <database_name> = <value>

database_name

The name of the currently used database as defined in the program.

value

The name of the new table that should be used as data source.

 

This command allows you to use some other database with the label file   and not the one, that was 
connected to the label file at design time.

This other database will only be used when printing labels, the label   file will remain intact with con-
nection to the original database.

SETPRINTPARAM

SETPRINTPARAM paramname=value

This command allows you to set advanced print parameters before printing.

Currently supported PARAMNAMES are:

PAPERBIN

Use it to specify from which tray the paper

Advertising