Welcome! Log In Create A New Profile

Advanced

[WD16] Looper with dynamic barcode...

Posted by DarrenF 
DarrenF
[WD16] Looper with dynamic barcode...
December 30, 2011 01:08PM
Hi guys,

In a data file I have each of the possible barcodes defined (BC_EAN13 etc...), along with sample content values, and on a window I have a Looper control with a Barcode control in it.

What I'd like to do is link the Barcode control to the data file and dynamically define the Barcode type on each row of the looper.

Does anyone know if this is possible or am I going up a "blind alley"?

I've looked at the WD Barcode example, but that hard-codes the EAN13 barcode.

I've also tried using the Row Display event of the Looper control with no luck.

Any ideas - maybe a List View would work better? ...but the "can this be done dynamically?" question still remains... :confused:

Thanks in advance...
Fabrice Harari
Re: [WD16] Looper with dynamic barcode...
December 30, 2011 03:08PM
Hi Darren

I've never tried to change dynamically the TYPE of a barcode, but one workaround that will work is to have several barcode field, each with a specific type, and to make visible the oen you need on each line...

Best regards

DarrenF
Re: [WD16] Looper with dynamic barcode...
December 31, 2011 08:20PM
Thanks Fabrice...

Hmmm, just been perusing the online Help and came across the new WD16 variable type of Barcodes. Has anyone used this new feature yet? [[5]] Hmmm, wonder if it can be used and linked to a Barcode control somehow?

[doc.pcsoft.fr]

KenKnight <img src="images/world-s.png" class="global" alt="Global User" title="Global User" />
Re: [WD16] Looper with dynamic barcode...
February 08, 2012 09:34PM
Hi Darren,

I have used the Barcode Type variable in a little freeware QRCode generator I wrote for PropertyBoss here; [www.propertyboss.org].

You may end up having to generate the barcode using a Variable and assign that to an image in your looper.

What I did was I have the visual Barcode control on the screen, then I create the barcode variable and set all the properties etc and I assign that final variable back to the Barcode control.

That should do it for you, however, if it doesn't you can drop an image control on the looper and then have a single barcode visual control and use the var type to set whatever properties against it, copy that to the visual to get a displayable image and then copy that into the plain image control in the looper using dCopyBlt(). Just drop this code in the row display area.

If you bind to a data element instead of manually building the control, you probably won't be able to accomplish what you're looking for.

Cheers!
ken
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: