@@ -18,6 +18,7 @@ Installation
18
18
- Create the LabelSpooler table in the database with file CreateTables.sql
19
19
- Create the file config.ini by copying the config-example.ini
20
20
- Install service from an elevated command prompt:
21
+
21
22
```
22
23
c:\LabelSpooler\LabelSpooler.exe --install
23
24
```
@@ -31,6 +32,37 @@ Uninstallation
31
32
c:\LabelSpooler\LabelSpooler.exe --uninstall
32
33
```
33
34
35
+ Spooling to the Database
36
+ ------------------------
37
+
38
+ For spooling labels into database you have to populate two mandatory fields:
39
+
40
+ - * printerName:* System printer name, UNC printer path or alias defined in config.ini.
41
+ - * printData:* The RAW data. It can be ZPL code, ESC/POS, plaintext or whatever.
42
+
43
+ And you can set an optional field:
44
+
45
+ - * jobTag:* This is not mandatory, you can use it for your reference
46
+
47
+ Example
48
+ ```
49
+ INSERT INTO LabelSpooler(printerName,printData,jobTag) VALUES ('PRINTER1','***LABELDATA***','USER:BOB;REFERENCE:101');
50
+ ```
51
+
52
+ Database Field Explained
53
+ ------------------------
54
+
55
+ | Field Name | Data Type | Description |
56
+ | ------------- | ------------- | ------------------------------------------------------------------- |
57
+ | jobID | bigint | Autoincrement identity column |
58
+ | printerName | varchar | Printer Name |
59
+ | printData | Text | RAW Print data |
60
+ | jobStatus | tinyint | Job Status, 0: to be sent, 1: printed, 2: error |
61
+ | jobCreated | datetime | Timestamp of creation (populated automatically by SQL Server) |
62
+ | jobRetries | tinyint | Number of retries |
63
+ | jobTag | varchar | Additional data you can set, for example for troubleshooting issues |
64
+ | jobLastSent | datetime | Timestamp |
65
+
34
66
Need Commercial Support?
35
67
------------------------
36
68
0 commit comments