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

Tabs in Memo Component

edited October 2003 in General
Hello All:

I need to print a report which is contained in a Delphi 5 Memo
component. The report is formatted with tabs using a Terminal Font.

I use Delphi 5/ReportBuilder Enterprise 6.02.

When I assign the data to a ppMemo component, the formatting is lost
because the ppMemo component does not support tabs.

Is there another solution ???

Would it be possible to print using a ppRichtext component ??? Does the
ppRichtext component support tabs ???


Thank you.


Neil Huhta

Comments

  • edited October 2003
    Hi Neil,

    Here is a snippet from my application to set tabs in a memo


    pStdPosition := '1.6';

    procedure SetTabPosition(ppMemo : TppMemo;
    pTabPosition : string;
    pAdjustment : extended);
    var lStrings : TStrings;
    lNumStr : string;
    begin
    lStrings := ppMemo.TabStopPositions;
    lStrings.Clear;
    lNumStr := pTabPosition;
    lStrings.Add(lNumStr);
    ppMemo.TabStopPositions := lStrings;
    end;


    HTH
    Jon
  • edited October 2003
    Hi Neil,

    Jon is correct, you can set the tab stops of a TppMemo using the
    TppMemo.TabStopPositions TStringList. Here you can define each tab stop
    position for a line in a memo.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.