How I can create barcode objects in runtime?

Hi, everybody!

I need create barcode objects in runtime at a loop. For example:
var
  Barra : TfrxBarCodeView;
...

for I:= 0; I < 10 do
begin
         Barra := TfrxBarCodeView.Create;
         Barra.Left := 50;
         Barra.Height:= 20;
end;

It's possible? If yes, how I can do?

Thanks.

Comments

  • edited 12:09PM
    Solved! I can create my report and create my objects. :-)

    It's very simple:
    var
      Page : TfrxReportPage;
      Band : TfrxBand;
      Bar  : TfrxBarCodeView;
      I : Integer;
      Left : Integer;
    begin
      case index of
        0:
        begin
          frxReport.Clear;
          Page := TfrxReportPage.Create(frxReport);
          Page.CreateUniqueName;
          Page.SetDefaults;
    
          Band:= TfrxReportTitle.Create(Page);
          Band.CreateUniqueName;
          Band.Top:= 0;
          Band.Height:= 20;
    
          Left:= 90;
          for I := 0 to 1 do
          begin
            Bar := TfrxBarCodeView.Create(Band);
            Bar.CreateUniqueName;
            Bar.Text:= '123456';
            Bar.Height:= 50;
            Bar.Left:= Left;
            Bar.Align:= baNone;
            Left:= Left + 190;
          end;
        end;
    
  • edited 12:09PM
    You solved by yourself? As for this topic, I have something to share. I have created barcode in C# ASP.NET with this tool. It's really good. I can use it for free for 60 days. Many other barcode generators can be found there, like Java Class barcode generator library, etc.
  • edited 12:09PM
    As far as I am concerned, it is easy to create linear and 2D barcode objects (such as PDF-417, Data Matrix, Code 128, EAN-8, EAN-13, etc) because I have googled a website which offers detailed tutorial for creating each barcode. You may search such free and useful tutorial to guide you.
  • edited 12:09PM
    jimmy123 wrote: »
    As far as I am concerned, it is easy to create linear and 2D barcode objects (such as PDF-417, Data Matrix, Code 128, EAN-8, EAN-13, etc) because I have googled a website which offers detailed tutorial for creating each barcode. You may search such free and useful tutorial to guide you.
    totally for free ?

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.