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

Printing varchar(255) field in a grid

edited November 2003 in General
Hi

I have a simple report, with a one line / record detail.

However, the comment field is a varchar(255), and sometimes is too long to
print on the report, so it gets truncated.

I tried using a DBMemo field, but the grid didn't seem to expand properly to
accomodate the text, although I set the memo component to "stretch". It
seemed to write over the grid lines, and then insert a space.

Can you please advise how I can get the full comments printed within the
grid for the odd occasions when they are too long to fit on one line. It is
bit like setting an Excel column to wordwrap - which preserves the grid
alignment.

TIA

Barry

Comments

  • edited November 2003
    Have you tried using DBText with WordWrap := True ?

    Hi

    I have a simple report, with a one line / record detail.

    However, the comment field is a varchar(255), and sometimes is too long to
    print on the report, so it gets truncated.

    I tried using a DBMemo field, but the grid didn't seem to expand properly to
    accomodate the text, although I set the memo component to "stretch". It
    seemed to write over the grid lines, and then insert a space.

    Can you please advise how I can get the full comments printed within the
    grid for the odd occasions when they are too long to fit on one line. It is
    bit like setting an Excel column to wordwrap - which preserves the grid
    alignment.

    TIA

    Barry
This discussion has been closed.