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

Richedit with data = nil?

edited September 2002 in General
Hello,

In my report I use a Subreport. In this Subreport is only one RichEdit with
MailMege = true.
The RichEdit contains text and one field.
If the field data is not nil, there is no problem and the text is
displayed. But if the field is nil, the hole richedit content is not
displayed.

What can I do, to show the text from richedit anyway, doesn't matter if the
field is nil or not?

Regards,
Markus

Comments

  • edited September 2002
    Are you sure that there is a record in the dataset? It sounds like the
    subreport isn't printing in this case. Connect the dataset up to a dbGrid.
    Try taking the rich text out of the subreport and place it in the main
    report. It should print. I modified the data for our main report demo #28
    to contain nulls in Clients.DBF and it will print the rich text control even
    if there is no data for the merge fields.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.