Barcode object align center when building report

On my report I have a shape within this shape a barcode object. Because the user can select which type barcode he/she wants and the barcode number are every time different, I need to align the barcode within the shape.

I have tried a lot but it doens't work very good.

I use this code:

bar_Product1.Left := shp_Barcode1.Left + ((shp_Barcode1.Width - bar_Product1.Width) / 2);



I have tried this code in the OnBeforePrint of the page, in the OnBeforePrint of the masterdata and in the script of the barcode.

But no one is good.

How do I solve this problem?

Comments

Leave a Comment