Stretch Barcode width

edited 12:18PM 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 12:18PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.