Tech Note: Printing Barcodes using 4D v11 SQL and SVG
PRODUCT: 4D | VERSION: 11.2 | PLATFORM: Mac & Win
Published On: July 30, 2008
This Technical Note updates Technical Note 05-08 for 4D v11 SQL. Using the new SVG features of 4D v11 SQL to replace 4D Chart to create bar codes, the result is much faster creation with higher quality. It also fixes a bug.
See the original Technical Note for a description of the commands and features (included with this document and also available at):
Printing Barcodes Tech Note
Download Complete Tech Note and Example: Windows | Mac
1) The API has changed slightly. Because of the protected variable namespace, you must call Barcode_SetParams to setup the barcode variables. I modified the component to include a sixth parameter to allow me to specify the BarcodeWidth variable. (Otherwise, I really could not figure out how to set the variable - 0 or 1).
2) You must check all of your calls to Barcode_Create and make sure you are not passing a sixth parameter. The new API only has 5 parameters. As of v11.4 the (any) component will fail or crash if you call it with more parameters than it is programmed to receive. I don't know if that bug has been fixed.
3) As of v11.5 you can not print a picture variable on a Label from Windows. Macs work. This is a confirmed bug.