by Obernier » Thu Sep 04, 2008 5:21 pm
As your advice, i tested the use of the barcode function.
when i do the following test:
CHReport:ROTATION = 900.
chreport:Encryption = 1.
chreport:protection = {&PDF_ALLOW_HIQ_PRINT} + {&PDF_ALLOW_PRINT} .
chreport:BarcodeThinBar = 1.
chreport:BarcodeThickBar = 2.5 .
chreport:nopen.
/* spécifie la position du texte et la position du texte en clair */
chreport:SetBarcodeParms(0,0).
li_compression = {&DOC_COMPRESS_NONE}.
largeur = -100.
chreport:Compression = li_compression.
Li_code = {&BCT_CODE39}.
chreport:BarcodeAutoChecksum = TRUE.
chreport:barcode(100,chreport:ntopmargin + 200 ,-800,-100,Li_code, "PRIDVET156180405255454-3" , "" ).
chreport:barcode(300 ,chreport:ntopmargin + 200 ,- 800,- 100,Li_code, "PRIDVET156180405255454-3" , "" ).
chreport:barcode(600 ,chreport:ntopmargin + 200 ,- 800,- 100,Li_code, "PRIDVET156180405255454-3" , "" ).
chreport:barcode(1000 ,chreport:ntopmargin + 200 ,- 800,- 100,Li_code, "PRIDVET156180405255454-3" , "" ).
chreport:barcode(1800 ,chreport:ntopmargin + 200 ,- 800,- 100,Li_code, "PRIDVET156180405255454-3" , "" ).
Once i generate the pdf file, for each codebarre the width and the heigth are differents (the results seem to depend on the coordinates of the element).
height 7,7 > > > 7,82
It's difficult to use it, if the result cannot be stable.
And the result is still less clear and less readable than using the other method:
chreport:WRITE(100,1300 ,-100,-800 ,"[N L 'C39T30lfz' IO S 24 BC WHITE ]" + "*PRIDVET156180405255454-3*").