Bar code width

edited May 2015 in FastReport 4.0
Hello,

With the code below, I need to add the bar code width. I added the width property but it doesn't do anything:
Bar.Width:=100;

Here'is the code:
var
  Page : TfrxReportPage;
  Band : TfrxBand;
  Bar  : TfrxBarCodeView;
  I : Integer;
  Left,Top : Integer;
begin

      frxReport1.Clear;
      Page := TfrxReportPage.Create(frxReport1);
      Page.CreateUniqueName;
      Page.SetDefaults;

      Band:= TfrxReportTitle.Create(Page);
      Band.CreateUniqueName;
      Band.Top:= 0;
      Band.Height:= 20;
      Top:=10;
      Left:= BarCodeLeft;

      for I := 0 to BarCodeCount do
      begin
        Bar := TfrxBarCodeView.Create(Band);
        Bar.CreateUniqueName;
        Bar.Text:= edText.Text;
        Bar.Text:=edText.Text;
        Bar.Height:= 50;//BarCodeHeight;
    //    Bar.BarType:=bcEAN13;
        Bar.Left:= Left;
        Bar.Top:= Top;
        Bar.Align:= baNone;
        Top:=Top+BarCodeTop;

      end;
  end;

Thanks for the help !

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.