qr code fixed
keep old release of ZXing.Net
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user