Seiko Instruments slp100 Guide De Référence

Page de 11
External Label Processing 
 
The Smart Label program is capable of executing a user-defined program each time a label is printed. 
This allows some additional processing to be performed for each printed label (e.g., add to a database, 
create a form letter, etc.). This feature is implemented by adding a “RunOnPrint” section to the 
SLPAdmin.xml file: 
 
<?xml version="1.0"?> 
<SLP_Admin version="1.0"> 
      <RunOnPrint> 
            <Enable>1</Enable> 
            <InfoFilePath>C:\Temp</InfoFilePath> 
            <ExecuteProgram>C:\Windows\Notepad.exe</ExecuteProgram> 
            <Wait>0</Wait> 
      </RunOnPrint> 
</SLP_Admin> 
 
There are four settings for Run-On-Print, defined are follows: 
 
Setting 
Description 
Enable 
Set to 1 to enable, or 0 to disable, the Run-
On-Print feature. 
InfoFilePath 
Path to where the Label Information file will 
be stored. The file name is in the format, 
“Label_2322022955_0001.xml”  and the last 
four digits (e.g., “0001”) are incremented for 
each label. 
ExecuteProgram 
Path to the user program to execute. The 
program will be executed with a command 
line that includes the path of the Label 
Information file. For example, 
C:\Windows\Notepad.exe  
Label_2322022955_0001.xml 
Wait 
Set to 0 to allow the Smart Label program to 
continue while the user program executes. 
Set to 1 to have the Smart Label program 
wait until the user program terminates before 
continuing, effectively preventing multiple 
instances of the user program. 
 
When executed, the user program will be passed one parameter, which is the name of the Label 
Information file. The file should be deleted after the contents are read, to prevent the accumulation of 
obsolete files. 
 
The user program should read the Label Information file, delete the file, process the information, and 
exit as fast as possible. If another label is printed while the user program is still executing, a second 
instance of the program will be started. This could cause problems.