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

Memo Question

edited March 2004 in General
Hi,

I am using RB 7.03. I built a report and inserted a Memo in the group
footer of a subreport. I set the group footer height to be dynamic and the
Memo property is set to stretch.
The problem is that when I print the report and the memo hits the end of the
page, it doesn't continue printing on the following page. What can I do to
have the Memo reprint on the following page if necessary?

Another problem I'm having is with formatting in the memo. I am using the
FormatString function to format where I want certain variables printed in
the memo. Is there a way to format one of the variables that is printing to
be right aligned?

The third question is that I'm having the information from one memo being
printed in another memo, but I only want the first line of that memo to be
included. I tried the following:
Memo1.Lines[0]
but that gave me an error when I tried to print the report. If I put in
Memo1.Lines.Text
then it works, but it's going to include all lines from that memo which I
don't want because it's going to word wrap and mess up my formatting. What
can I do?


Thanks,

Yelena

Comments

  • edited March 2004
    1. If Memo.Stretch is set to true then the memo should be able to overflow.
    Make sure the Band.PrintHeght is set to phDynamic.

    2. Memos do not contain formattting. If you need formatting I suggest that
    use a RichText memo.

    3. Perhaps a timing issue and the Memo1 is actually empty? In your code
    check Memo.Lines.Count. I just created a simple working example. A single
    memo with a single line of text. A Label and the Lable.OnPrint event
    implemented as follows:

    Lable1.Caption := Memo1.Lines[0];

    To add the line to another memo would require the following (which I tested
    and also works)

    Memo2.Lines.Add(Memo1.Lines[0]);



    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.