Add the line number in the crosstab

Please, Can see the attachment

Have

Item Grupo 1 Grupo 2
A B C Total E F G Total
item aaa 1 2 30 33 10 7 34 51
item www 1 2 30 33 10 7 8 25
item xxxx 1 2 30 33 10 7 23 40
item zzzz 1 2 28 31 10 7 1 18


I need You , Add the line number in the crosstab

Item Grupo 1 Grupo 2
A B C Total E F G Total
1 item aaa 1 2 30 33 10 7 34 51
2 item www 1 2 30 33 10 7 8 25
3 item xxxx 1 2 30 33 10 7 23 40
4 item zzzz 1 2 28 31 10 7 1 18

Comments

  • edited December 2016
    You can get the effect.
    add_line_dbcross.jpg

    Put a memo exactly into item field and set Align property = alLeft;
    Then declare an integer variable and
    procedure DBCross1Object1OnBeforePrint(Sender: TfrxComponent);
    begin
      inc(i);
      TfrxMemoView(Sender).Left := -TfrxMemoView(Sender).Width;
      TfrxMemoView(Sender).Text := IntToStr(i);                                                                                     
    end;
    
  • edited 10:34PM
    It shows perfect, but now how do I get it out on the print

    Greetings, Gerardo
  • edited 10:34PM
    It shows perfect, but now how do I get it out on the print



    you want me to explain how to do it? But I showed.
    Please analize my OnBeforePrint procedure.
  • edited 10:34PM
    In preview it looks perfect, but when it is sent to the printer or it is exported it does not come out
  • edited 10:34PM
    On export document (pdf) my line number doesn't exists, but when to print then it is.

Leave a Comment