
- 182 -
TheorderorappearanceofthecolumnsintheCSVfileisnoimportant.Butitisimportantthatall
rowsinthesameCSVfilehavethesamestructure.
Sessionprintisusedautomatically.Sessionprintingisdisabledwhenyouchangetheprinterorlabel
withinthesameCSVfile.
AllcolumnsintheCSVfileareusedwhensettingthevaluestothelabelvariables.Ifthevariable
withthenamefromCSVdoesnotexistonthelabel,noerrormessageisdisplayed.
Command File: XML File
ThecommandsavailableintheXMLcommandfilesareasubsetfromNiceCommands.Youcanuse
thefollowingcommands:Login,Quit,Label,LabelClose,Set,Port,Printer,SessionEnd,Ses-
sionStart,SessionPrint,SetDatabaseandSetTable.Ofcourse,thesyntaxofthecommandsdiffersa
littlebitwhenusedinXMLfile.
TherootelementisNice_CommandsthatmustbepresentintheXMLcommandfile.Thenextele-
mentthatmustfollowisLabel,thatspecifieswhichlabeltouse.Nextyouhavetwooptionsfor
labelprinting:
1. PrintlabelsnormallyusingtheelementPrint_Job.
2. PrintlabelsinsessionusingtheelementSession_Print_Job.
Youcanalsochangetheprintertowhichthelabelswillprint,youcansetthevariablevalueandyou
canchangethedatabasethatiscurrentlyusedonthelabel.
XML Command File Structure Explained
Belowisthedescriptionofthecommandfilestructure.Thereareseveralelementsthatcontainattrib-
utes.Someattributesarerequired,otherareoptional.Someattributescanoccupypre-definedvalues
only,forotheryoucanspecifythecustomvalues.
Nice_Commands:Isrootelementwithtwoattributes
l login:Performsloginprocedureintotheprogram.Notrequired.
l quit:Closestheprintenginewhentheactionsexecute.Willremovetheprintenginefrom
thememory.Isrequired.
Label:Theelementthatopensthelabelintheprintengine.Ifthelabelisalreadyopened,itwillbe
re-used.Youcanusethiselementseveraltimeswithinthecommandfile.
l name:Attributecontainsthelabelname.Itisrecommendedtoincludelabelpathandfile-
name.Note:Youcanprovidelabelnameonly,butbesurethatprintenginewilltry
locatethelabelinthecorrectfolder.Isrequired.
l close:Theattributeinstructstheprintengine,ifthelabelshouldcloseafterprinting,orit
shouldremainopen.Possiblevalues:true,false.Isrequired.
Print_Job:Theelementthatunionsthecommandsforprintinglabels.Youcanusethiselementsev-
eraltimeswithinthecommandfile.
l printer:Usethisattributetooverridetheprinterdefinedonthelabel.Printthelabelto
someotherprinter.Theotherprintermustbeaccessiblefromthiscomputer.Usethe
printernameforvalueofthisattribute.Notrequired.
l quantity:Usethisattributetospecifythenumberoflabelstoprint.Possiblevalues:
numericvalue,VARIABLEorUNLIMITED.Required.
Kommentare zu diesen Handbüchern