print stringgrid title

edited October 2009 in FastReport 4.0
in my program I used stringgrid and fixed row in the stringgrid is title then I want this row to be title and write to per page but I can not change column title in stringgrid and it is constant and type numeric 1,2,3,4,.. I want change but I don't know do ! please hint me
thank you

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:15AM
    have you looked at the printstringgrid demo in the demos folder?
  • edited October 2009
    Thank you gordk
    I wrote in my program this code for printing stringgrid but I don't know where change title to column title stringgrid then stringgrid title in output in per page is 1,2,3,4,...

    procedure TForm21.frxReport1BeforePrint(Sender: TfrxReportComponent);
    var
    Cross: TfrxCrossView;
    finish :integer;
    begin
    if Sender is TfrxCrossView then
    begin
    finish := Stringgrid2.ColCount ;
    Cross := TfrxCrossView(Sender);
    for i := 1 to finish do
    for j := 1 to Stringgrid2.RowCount - 1 do
    Cross.AddValue([j], [finish + 1 - i], [StringGrid2.Cells[i - 1, j ]]);
    end;
    end;

    I used stringgrid and don't link stringgrid to database and I fill stringgrid in Running time It is not DBGrid , I don't know link ' printstringgrid demo ' or ' demos folder ' if possible write for me links

    best Regard
  • gordkgordk St.Catherines On. Canada.
    edited 9:15AM
    if you installed fr to its default folders you will find them in
    c:\ Program Files\Fastreports\FastReport 4\demos
  • edited October 2009
    Sorry, in the demo no comment about column title . if change column title and enlarge stringgrid row then no print coulmn title in per page
  • edited 9:15AM
    No anyone help me

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.