Recent

Author Topic: (Solved) Lazbarcodes  (Read 406 times)

Petrus Vorster

  • Full Member
  • ***
  • Posts: 171
(Solved) Lazbarcodes
« on: September 03, 2025, 01:08:17 pm »
Hi All

I used the ZINT library over in Basic to print Code128 barcodes, and I installed the Lazbarcode package on LPC.
It appears simple to place the control on the form and change the text. The encoding seem to work  correct.
Back in basic I had to generate the barcode as an image, then save it first. The upload that again to print. That seems real time wasting.

In the examples there is no printing examples, but i have found a property of Printtocanvass that may suggest you can add it to a print job.

Before I cause a pile of memory leaks and other disasters, isn't there anyone here that have a simple example on how to generate the barcode straight to a labelprinter?
I have the label printer working with code39 bar-codes already, but it legally HAS TO be code 128.

Thank you lads, you are always very helpful.

-Peter
« Last Edit: October 01, 2025, 08:59:56 am by Petrus Vorster »

Petrus Vorster

  • Full Member
  • ***
  • Posts: 171
Re: Lazbarcodes
« Reply #1 on: September 03, 2025, 01:21:23 pm »
Just more info. The code39 runs on a font. You just add * before and after the text and it will scan.

Now I have to deal with the image and place that on the label.
and then do the next label and so forth....

Petrus Vorster

  • Full Member
  • ***
  • Posts: 171
Re: Lazbarcodes
« Reply #2 on: September 03, 2025, 01:30:12 pm »
Oh, nevermind, it turned out to be extremely simple.

Thanks for your time.

-Peter

paweld

  • Hero Member
  • *****
  • Posts: 1500
Re: Lazbarcodes
« Reply #3 on: September 03, 2025, 01:41:44 pm »
An example project is included in the attachment. It requires the LazReports and LazBarcodes components to be installed.
Best regards / Pozdrawiam
paweld

 

TinyPortal © 2005-2018