diff --git a/console_lps/Program.cs b/console_lps/Program.cs index 667f26c..9751851 100644 --- a/console_lps/Program.cs +++ b/console_lps/Program.cs @@ -58,8 +58,8 @@ public class Program }); // Definisce dove viene stampata l'etichetta - var printer = "\\\\PALAPPS03.PAL.LOCAL\\ETM03"; - //var printer = "\\\\PALPRINTER02.PAL.LOCAL\\ST05_64"; + //var printer = "\\\\PALAPPS03.PAL.LOCAL\\ETM03"; + var printer = "\\\\PALPRINTER02.PAL.LOCAL\\ST05_64"; using (PrintDocument pdLabel = LabelPrinterService.PreparePrintDocument(printer, liToPrintList[0].TotalLabels)) { diff --git a/console_lps/Services/LabelPrinterService.cs b/console_lps/Services/LabelPrinterService.cs index d12e44f..6dd2c79 100644 --- a/console_lps/Services/LabelPrinterService.cs +++ b/console_lps/Services/LabelPrinterService.cs @@ -47,8 +47,8 @@ public class LabelPrinterService Font fntBold = new Font("Bitstream Vera Sans Mono", 13.0F, FontStyle.Bold); // Codice QR - //e.Graphics.DrawImage(Utils.GenerateQRCode_Image(JsonConvert.SerializeObject(qr), - //135, 135), offsetx, offsety); + e.Graphics.DrawImage(Utils.GenerateQRCode_Image(JsonConvert.SerializeObject(qr), + 135, 135), offsetx, offsety); offsetx += 137; diff --git a/console_lps/Services/Utils.cs b/console_lps/Services/Utils.cs index 2ddac81..c1e45f7 100644 --- a/console_lps/Services/Utils.cs +++ b/console_lps/Services/Utils.cs @@ -16,7 +16,7 @@ public class Utils { QRCodeWriter qr = new QRCodeWriter(); var matrix = qr.encode(data, ZXing.BarcodeFormat.QR_CODE, width, height, new Dictionary()); - ZXing.BarcodeWriter w = new ZXing.BarcodeWriter + ZXing.BarcodeWriter w = new ZXing.BarcodeWriter { Format = ZXing.BarcodeFormat.QR_CODE }; diff --git a/console_lps/console_lps.csproj b/console_lps/console_lps.csproj index 2e82547..f2a43a2 100644 --- a/console_lps/console_lps.csproj +++ b/console_lps/console_lps.csproj @@ -15,7 +15,7 @@ - +