stretching text for label printing
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com