Simplicty and flexibility!


HTML and Barcode Font


Started by afonso santos
Search
You will need to Sign In to be able to add or comment on the forum!

HTML and Barcode Font

Hi,

Does anybody know how to print in reports generated with HTML, a set of items listed in a table but with a Font for Barcode readers?

The problem is that the editor doesn't have font for Barcode 39 ( for example ).

for reports not generated by HTML I can do it ( just changing the field's  Font ).

Thanks

Afonso


Written by afonso santos 29/03/20 at 19:25:47 Dataease [{8}]FIVE

Re:HTML and Barcode Font

Download

In Principle you can use the same font in HTML.


Just need to set it on the tag.

<style>

.barcode {font-family: "Code 128" ;font-size:72px;}

</style>

.items

<p>[{code}]</p>

.end

Here we have done it a little more Webby but in principle you can simply write it directly on the tag.

<p style="font-family: "Code 128" ;font-size:72px;">[{code}]</p>

However as you can see from the attached sample we have included the proper Web way of doing it which also highlight the benefit of using HTML/Web to present output.

Here we use a free library to generate the Barcode and to all of you that have worked with barcodes know the vast benefit of that.

You don't have to calculate the barcode string as you can simply input the text/number you want for the barcode and the library calculate the barcode and present it. 

Below is the link to the one we used. There is plenty of them and you can use the same method for almost anythinng.

https://www.jqueryscript.net/other/Simple-jQuery-Based-Barcode-Generator-Barcode.html


This ones support the following barcodes. 

  • EAN 8
  • EAN 13
  • UPC
  • standard 2 of 5 (industrial)
  • interleaved 2 of 5
  • code 11
  • code 39
  • code 93
  • code 128
  • codabar
  • MSI

  • Data Matrix

Written by DataEase 02/04/20 at 22:33:59 Dataease [{8}]FIVE
DG3_ForumList