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

stretching text for label printing

edited February 2007 in General
I store the text in a longblob field and edit the text using a wwDBRichedit
component.

I need to print text to a thermal roll printer. The width is 100mm and we
will fix the length to 500mm.

I need to expand the text to the area of the sign automatically.
sample wording may be.

NO PARKING (this would be on one line and fill the area)
PLEASE DO NOT PARK HERE UNLESS YOU HAVE VALID PAY & DISPLAY TICKET (This
would need to shrink the text and spread it over 3 lines).

What do I need to do this please?

Cheers

SteveW

Comments

  • edited February 2007
    Hi Steve,

    I am not sure how the wwDBRichEdit will behave because it is not a native RB
    component however I would assume it would automatically wrap the text based
    on the control size in your report. If you need to adjust the font of the
    rich text you will need to access the actual RTF code to do so. I know in
    ReportBuilder you need to use the TTextAttributes property.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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