Displays the standard Print dialog box in order to print label to the currently selected printer.
The function expects a multiline string to be printed on a label printer (like brother P-touch QL-550 or others).
The suggested paper size is "Standard Address Label", 29 by 90 mm, Landscape orientation.
Parameters:
Name |
Type |
Description |
label |
String |
A multiline string to be printed on a label printer. |
Available in:
WindowMain |
WindowLink |
YES |
NO |
Used in:
XojoScript Name |
GUID |
Print label on label printer, from address |
4FDBEDF3-48AD-46A4-91CB-CA57D66480AE |
Hint: You can find more references to XojoScripts which make use of this function by sending the following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%PrintLabel%'
Example XojoScript:
// Print label on label printer, from address
Dim label As String
If GetPanelNum("imPanelBoxLabel") = 0 Then
label = GetText("imTA_adr_Label")
Else
label = GetText("imTA_adr_Label2")
End If
If Trim(label) <> "" Then
PrintLabel(label)
End If