Barcode generator previous value
hi,
I have a problem with the barcode generator, it's generating invalid barcode.
It reads previous barcode but it shows the right alphanumeric text on the label and this happens very rare so i can't able to catch the problem
I'm tried to set barcode text again at BeforePrint event but nothing changed
This discussion has been closed.
Comments
Please describe how you set the data for your barcode?
D is datasource which loaded from stored procedure and SSCC is a column name
Barcode editor [D.SSCC]
What version of FastReport.Net are you using?
Product Version is 2016.4.27.0
Hello!
In the BeforePrint handler, you cannot access the design field by its global name (or mutate it in AfterData, once the image has already been rendered). Always retrieve an instance of the current row via (BarcodeObject)sender, and if the text is specified manually in the code, clear the DataColumn.
We recommend updating FastReport.Net from the 2016 build to the current release 2026.2.x, where the rendering and recalculation of barcodes on each DataBand row have been reworked.