Posted 24 March 2020, 5:44 pm EST - Updated 30 September 2022, 3:59 am EST
Hi
I’m a developer who uses the ActiveReports component to create a QR Code. The version of the ActiveReports component is 6. And for some strings, the QR Code cannot be decode by some websites. And I found it just happened on my computer (business computer). My environment is VS2017 Enterprise, Windows 10 Enterprise (64-bit). By debugging the code, my default encoding is iso-8859-1 (CodePage 1252). The setting of QR Code like below:
private DataDynamics.ActiveReports.Barcode qrPayment; this.qrPayment = new DataDynamics.ActiveReports.Barcode();
this.qrPayment.Height = 2.071F; this.qrPayment.Left = 0.2099998F; this.qrPayment.Name = “qrPayment”; this.qrPayment.Style = DataDynamics.ActiveReports.BarCodeStyle.QRCode; this.qrPayment.Top = 1.042F; this.qrPayment.Width = 2.071F; this.qrPayment.Text = “SPC\r\n0200\r\n1\r\nCH7608387000001080035\r\nS\r\nING BELGIUM\r\nBank street House 1 Bank district\r\n\r\n9988\r\nGENEVE\r\nCH\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n274.64\r\nCHF\r\nS\r\nA R Kuhn AG\r\nBenzenschwilerstrasse 3 \r\n\r\n5634\r\nMerenschwand\r\nCH\r\nNON\r\n\r\ngezogene Einheiten/Kippauflieger Invoice From 04.03.2020 To 04.03.2020\r\nEPD\r\n\r\n”;
So I confused if there any set of encoding should I change to make the QR Code can decode correct by the website. Decode website like below:
And I upload two QC Code images, the v8 can decode correctly and v6 cannot. Please help me how can I do to solve this problem besides upgrading the component. If it necessary I can upload my solution. Thank you.