qr code fixed

keep old release of ZXing.Net
This commit is contained in:
Claudio Boggian
2022-10-28 18:03:21 +02:00
parent 1c87a86f1c
commit 46837c85d5
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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))
{
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -16,7 +16,7 @@ public class Utils
{
QRCodeWriter qr = new QRCodeWriter();
var matrix = qr.encode(data, ZXing.BarcodeFormat.QR_CODE, width, height, new Dictionary<EncodeHintType, object>());
ZXing.BarcodeWriter<Bitmap> w = new ZXing.BarcodeWriter<Bitmap>
ZXing.BarcodeWriter w = new ZXing.BarcodeWriter
{
Format = ZXing.BarcodeFormat.QR_CODE
};
+1 -1
View File
@@ -15,7 +15,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="ZXing.Net" Version="0.16.8" />
<PackageReference Include="ZXing.Net" Version="0.16.6" />
</ItemGroup>
</Project>