Skip to content

Commit 5924550

Browse files
committedMar 6, 2020
Updated Readme
1 parent 4723f81 commit 5924550

File tree

4 files changed

+51
-19
lines changed

4 files changed

+51
-19
lines changed
 

‎ProjectInstaller.Designer.cs

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ProjectInstaller.resx

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<metadata name="serviceProcessInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
120+
<metadata name="ProcInstall.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121121
<value>17, 56</value>
122122
</metadata>
123-
<metadata name="serviceInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
123+
<metadata name="ServInstall.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124124
<value>196, 17</value>
125125
</metadata>
126126
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

‎Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("LabelSpooler")]
13-
[assembly: AssemblyCopyright("Copyright © 2020")]
13+
[assembly: AssemblyCopyright("Copyright © 2020 Riccardo Bicelli")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

‎README.md

+32
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Installation
1818
- Create the LabelSpooler table in the database with file CreateTables.sql
1919
- Create the file config.ini by copying the config-example.ini
2020
- Install service from an elevated command prompt:
21+
2122
```
2223
c:\LabelSpooler\LabelSpooler.exe --install
2324
```
@@ -31,6 +32,37 @@ Uninstallation
3132
c:\LabelSpooler\LabelSpooler.exe --uninstall
3233
```
3334

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+
3466
Need Commercial Support?
3567
------------------------
3668

0 commit comments

Comments
 (0)