Bug 385157 - EAN barcodes do not show numbers on preview/printout
Summary: EAN barcodes do not show numbers on preview/printout
Status: CONFIRMED
Alias: None
Product: KEXI
Classification: Applications
Component: Reports and Printouts (show other bugs)
Version: 3.1.0 Alpha
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kexi Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-27 22:51 UTC by Jarosław Staniek
Modified: 2017-09-27 22:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Design and preview (7.43 KB, image/png)
2017-09-27 22:54 UTC, Jarosław Staniek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jarosław Staniek 2017-09-27 22:51:40 UTC
EAN barcodes do not show numbers on preview/printout.

1. Run Kexi reports or KReportExample.
2. Insert a barcode element.
3. Change type to EAN-8 and EAN-13. (https://en.wikipedia.org/wiki/EAN-8)
4. Set Value property to e.g. 96385074 for EAN-8 (specific 8 digits required due to checksum checking) or for EAN-13 (https://en.wikipedia.org/wiki/International_Article_Number) 5901234123457 or 590123412345.

Actual result: Preview/printout shows no digits below the bars. Design view shows them.

Expected: Preview/printout shows digits below the bars just like on the design.
Comment 1 Jarosław Staniek 2017-09-27 22:53:20 UTC
Developer's hint: In KReport, renderCodeEAN13() uses apparently small values for offsets, e.g. 0.07. This needs investigation and scaling up.
Comment 2 Jarosław Staniek 2017-09-27 22:54:13 UTC
Created attachment 108067 [details]
Design and preview