Stretch Barcode width

edited 9:46PM in FastReport VCL 5
Hi, is it possible to stretch barcode (Code128) to a specified size at design time and force it to every "TEXT" will show?

I mean, may I fix the control width on designer using a custom width.. Now is fixed and i cannot resize using handles.

Thank in advance

Comments

  • gpigpi
    edited 9:46PM
    Try like this:
    var
    bc : TfrxBarCode2DView;
    r : TfrxRect;
    begin
    bc := TfrxBarCode2DView(frxReport1.FindObject('BarCode2D1'));
    bc.Text := '1234567890 test 1234567890 asdf 1234567890';
    r := bc.GetRealBounds;
    bc.Zoom := bc.Width/(r.Right - r.Left);
    frxReport1.ShowReport();
    end;
    

Leave a Comment