Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

print multiple barcode types in the same report

edited January 2004 in General
I need to print multiple label each one with a different barcode type (EAN
13, UPC A, ecc.).
is it possible to set ppDBBarCode1.BarCodeType:=bcEAN_13 for each label ?
Wich event must I use ?
Thanks a lot

Rodolfo

Comments

  • edited January 2004
    the onprint event of the tppbarcode??
    marc

  • edited January 2004
    I have tried but seem the event is not fired...

    my test code is:
    procedure TForm1.ppDBBarCode1Print(Sender: TObject);
    begin
    ppDBBarCode1.BarCodeType:=bcEAN_13;
    end;

    a breakpoint over this assignment dont stop the execution.


    "Marc Antheunis" ha scritto nel
  • edited January 2004
    OK!!!
    I load a template from a file.
    It is sufficient to set:

    ppReport1.Template.FileName:=nm;
    ppReport1.Template.LoadFromFile;
    ppDBBarCode1.OnPrint := ppDBBarCode1Print; <<<<<<<<<<<
    ppReport1.Print;

    And the event is correctly fired

    Thanks.


    "Rodolfo Rughi" <rork10001@mail.com> ha scritto nel messaggio
This discussion has been closed.