PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → QR Code with Version 9 (minimum value)
QR Code with Version 9 (minimum value)
Iniciado por henriquecaldeira, 26,nov. 2020 18:05 - 1 respuesta
Publicado el 26,noviembre 2020 - 18:05
Hi all,

Could someone please tell me how I can create this QR Code using Windev 24/25 (or not), but the goal is to print the QR Code in a Windev report:

The specification:

The creation of the two-dimensional bar code (QR code) must comply with the following
specifications:
a) Error Correction Code (ECC): ‘M’; [Windev -> QRCodeVar..CorrectionError=qrcodeLevelM]
b) Type: Byte;
c) Points per module (Size): 2;
d) Version: V=9 (minimum value);
e) Image dimensions: minimum 30x30 mm;
f) Margin: 0,25 cm.

My difficulty:
b) Type: Byte; [Windev -> maybe QRCodeVar..ContentType=bcTypeText]
c) Points per module (Size): 2; [I don't really know]
d) Version: V=9 (minimum value); [I don't really know]

The symbol versions of QR Code range from Version 1 to Version 40. Each version has a different module configuration or number of modules. (The module refers to the black and white dots that make up QR Code.)
"Module configuration" refers to the number of modules contained in a symbol, commencing with Version 1 (21 × 21 modules) up to Version 40 (177 × 177 modules). Each higher version number comprises 4 additional modules per side. Version 9 have 53x53 modules. I can only meet the requirements if I have more than (approximately) 212 characters of text (I think the module/version is automatic only in Windev).

Any help will be welcome.


Thank you in advance.
Publicado el 12,diciembre 2020 - 19:09
In Windev, for versions 24 / 25, or earlier, it is not possible to generate a QR code with these specifications.
"[...]
b) Type: Byte;
c) Points per module (Size): 2;
d) Version: V=9 (minimum value);
[...]"

Content is always converted to text type (buffer, binary strings... are printed as a character);
there is no control for points per module;
there is no control for the version (180 characters are required to "automatically" generate version 9).