Tabs in Memo Component
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
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
This discussion has been closed.
Comments
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
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com