我用的是xe2的fastreport,但是设置了不同的文字,返回的宽度都是固定的。TfrxBarcodeView(fr.FindObject('barCode')).Text:='123456789';
showmessage(floattostr(TfrxBarcodeView(fr.FindObject('barCode')).Width));
TfrxBarcodeView(fr.FindObject('barCode')).Text:='123';
showmessage(floattostr(TfrxBarcodeView(fr.FindObject('barCode')).Width));
显示的都是71,这样就没法居中了。有什么办法让barcode居中(我已把Alian设为baCenter还是一样)?谢谢