News & Events

Printing an Address within a Window

General

 

I have no control over the data I get. Sometimes the name will be longer than the window I have. This happens in mailing applications.

 

I want to either:

  • Cut the length of the text to the window length
  • Make the font smaller so that the hole line has space in the window
  • Do a new line if the line is longer than the window

 

Layout

 

This is an example of a German address where one can see that line 1 is too long and goes into the barcode, making it unreadable.

 

 

What to do?

 

 

The barcode will be readable but you will lose the back part of a long line

 

 

You can see, the 1st line is written with a smaller font so that the whole message fits in the given window.

 

 

You can see, the 1st line is written now in 2 lines so that the whole message fits in the given window.