Logging a History of Printed Labels
More information is usually better. With Label LIVE's Print Log feature, you can have a record of every label printed. There are two formats to choose from: Fixed CSV and Custom (JavaScript).
Fixed Format Using CSV
Open a design and click the Book icon in the lower-left corner. You will need to choose a location for the log file and enter a filename for the log file. The default extension is CSV and a header row will be created automatically. You may specific another extension such as .log
or .txt
.
Click "Enable Print Log" and optionally try a "Test Print" (this is a shortcut to pressing the Print button on the Print tab). Click "Open Log" to open the file using the computer's default app for that file type.
Custom Format Using JavaScript
Use Label LIVE's powerful scripting engine to add custom logic and formatting to your log files. Click "Custom" and click inside the text field. A context drawer will appear showing you the JS object supplied on each printed label. You can edit the code in real-time, seeing the result instantly. Use familiar console.log
statements to debug your code.
It's that easy!
Printed invoice #001 on June 5, 2024 5:12:46 PM...
Printed invoice #002 on June 5, 2024 5:12:47 PM...
Printed invoice #003 on June 5, 2024 5:12:47 PM...
Printed invoice #004 on June 5, 2024 5:12:47 PM...
This example is purposefully simple. We trust you'll be able to create complex log file formats that satisfy the demands of your business. If not, we'll be here to lend our hand at expanding Label LIVE's scripting abilities.