1. Markus Eckert
  2. PowerBuilder
  3. Friday, 15 February 2019 09:47 AM UTC

Hi everyone

I need to add a QR Code with a certain height and width to a Datawindow.

Now from what I've seen, most people suggest using a QR font as the easiest way to add a QR Code to a Datawindow. Unfortunately, (unless I'm overlooking something), using a font makes resizing the QR Code to a certain size next to impossible. (especially when different QR code versions are used)

Does anyone have a good recommendation on how to generate a QR code as an image file?

Regards,

Markus

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 15 February 2019 14:42 PM UTC
  2. PowerBuilder
  3. # Permalink

This product mentions PowerBuilder support:

https://www.tec-it.com/en/software/barcode-software/tbarcode/barcode-generator/Default.aspx#dll

The QR-Code is part of the 2D product level which for a single user is €168 / $209. It comes with an ActiveX control and a DLL that may be usable from PowerBuilder.

 

 

Comment
  1. Olan Knight
  2. Friday, 15 February 2019 23:39 PM UTC
Sounds FAR less expensive than building it from scratch. :)

That's what money is for.



Olan
  1. Helpful
  1. Markus Eckert
  2. Monday, 18 February 2019 09:02 AM UTC
Thanks, this does look very interesting.
  1. Helpful
  1. Markus Eckert
  2. Thursday, 21 February 2019 09:16 AM UTC
It didn't just look interesting, it was also well documented and the DLL was easily integrable into our application.

Thanks again for the pointer!
  1. Helpful
There are no comments made yet.
Markus Eckert Accepted Answer Pending Moderation
  1. Monday, 18 February 2019 09:01 AM UTC
  2. PowerBuilder
  3. # 1

Thanks, this does indeed look very interesting.

Comment
There are no comments made yet.
Matthew Balent Accepted Answer Pending Moderation
  1. Friday, 15 February 2019 17:41 PM UTC
  2. PowerBuilder
  3. # 2

I 'rolled my own' some time ago with a C# COM component using open source libraries.  A quick search on Codeproject should give you a ton of examples.

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Friday, 15 February 2019 14:59 PM UTC
  2. PowerBuilder
  3. # 3

From what little I know about the 2d barcodes, the individual dots need to be a minimum size to be scannable, and different versions of the barcode end up as different sizes as the result.

The fonts that are used may come in differing sizes (for example, the universal version of the ID Automation barcode font comes in 6 ttf files for 6 diff default heights/widths, each works best at 12pt). Each font can be scaled up/down to fit the space needed by changing the font height (pt size). The smallest of the fonts wouldn't scale to be particularly good when set to 72pt, but the largest does.

These same principles should apply to the QR code fonts as well (from what I can see, the ID Automation 2d fonts support multiple pt sizes).

You might need to try diff sizes of the font for different versions of the QR-Code, but you should be able to get them all to be relatively close to the same overall width/height even though the dot sizes differ. You just can't make the dot size so small that the scanners have problems with it.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.